note 42401 deleted from function.rtrim by nlopess

From: Date: Sun, 16 May 2004 09:12:54 +0000
Subject: note 42401 deleted from function.rtrim by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69663@lists.php.net to get a copy of this message
Note Submitter: antti29@isokaato.com ---- This also works with numbers. I ran into a problem of having useless zeros in the end of a decimal number. <? print(rtrim(2.750,0)); // prints out 2.75 ?> However, keep in mind that a number such as 1.000 would print out as "1.".

« previous php.notes (#69663) next »