note 39602 deleted from function.sprintf by tomsommer

From: Date: Wed, 04 Feb 2004 08:27:13 +0000
Subject: note 39602 deleted from function.sprintf by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64625@lists.php.net to get a copy of this message
Note Submitter: radley25@spamcop.net ---- A slightly simpler function for float trimming: <?php function trimfloat($num) { return rtrim(rtrim($num, 0), '.'); } echo trimfloat(4.000); // echoes 4 ?>

« previous php.notes (#64625) next »