[snip]
Simple problem... I want to manipulate with PHP function to get "desired

output" below.

$var="59.9"

Desired Output:

$var="59.90"

I thought number_format would do the trick but no way, unless I just 
missed something.. ?
[/snip]

it is number_format http://www.php.net/number_format

$var="59.9";
$var = number_format($var, 2, '.', '');
echo $var;

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to