How do I output currency, as the zero on the end of the following value gets cut off:
e.g. £0.50
How do I add a zero, if a zero is expected to appear at the end of the value?
the number_format function does it!
$n = 0.5; echo number_format($n, 2);