money print out with two digits after , e.g. 49,00

From: Date: Tue, 08 May 2001 14:34:51 +0000
Subject: money print out with two digits after , e.g. 49,00
Groups: php.general 
Request: Send a blank email to php-general+get-51899@lists.php.net to get a copy of this message
I want to changes 49.4 ---> 49,4 49,4 ----> 49,40 the first rule is done with the code $totaal=49.4; $totaal=str_replace(".",",",$totaal); how can i do the second row?? please help. greets Ramiro

« previous php.general (#51899) next »