Unless I'm missing something here but wouldn't this work just fine?
<?php
$mynumber = ".2";
echo "$" . number_format($mynumber,2);
?>

It takes the number (.2) and then format it with ,'s (if needed) and
round to 2 digits.

number = 219221.2912939
This would be displayed as 219,221.29

Hope this helps,
Chad

On Jan 3, 1:06 pm, gmchun <[email protected]> wrote:
> Hai,
> How to change currency display?For example,my code was display 20C but
> i would like to display as $0.20.
> I was read following solution but no 
> luck.http://cakephp.lighthouseapp.com/projects/42648/tickets/34-added-func...
>
> I was using 1.2RC3 and also how to upgrade from 1.2 to 1.25?
>
> Please advice.
>
> Regards,
> Wallace

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to