note 42401 added to function.rtrim
| From: | antti29 at isokaato dot com | Date: | Fri, 14 May 2004 21:57:39 +0000 |
| Subject: | note 42401 added to function.rtrim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69621@lists.php.net to get a copy of this message | ||
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.".
----
Manual Page -- http://www.php.net/manual/en/function.rtrim.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42401
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42401&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42401&report=yes
Search -- http://master.php.net/manage/user-notes.php