At 08.05.01  16:34, you wrote:
>I want to changes 49.4  --->       49,4
>                             49,4 ---->     49,40
Try this
<?
$totaal=49.4;
$totaal=str_replace(".",",",sprintf("%2.2f",$totaal));
echo "TOTAL after =$totaal<br>";
?>
Oliver


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to