note 40499 added to function.sprintf
| From: | php-general at lists dot php dot net | Date: | Fri, 05 Mar 2004 15:54:30 +0000 |
| Subject: | note 40499 added to function.sprintf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66303@lists.php.net to get a copy of this message | ||
both of your cut-zero functions are just way too complicated. if it's a string where only the
zeros at the end should be truncated, why not use a syntax as simple as
rtrim("4.7000","0") ?
----
Manual Page -- http://www.php.net/manual/en/function.sprintf.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40499
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40499&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40499&report=yes
Search -- http://master.php.net/manage/user-notes.php