note 22581 added to function.floor

From: Date: Sun, 23 Jun 2002 22:37:27 +0000
Subject: note 22581 added to function.floor
Groups: php.notes 
Request: Send a blank email to php-notes+get-32133@lists.php.net to get a copy of this message
In response to netben's comment, another conversion for a string is: $myStr = "29.01"; $myStr = (float) $myStr; In all, any string (as used as in this example) will be treated as float, and no conversion necessary. -- http://www.php.net/manual/en/function.floor.php http://master.php.net/manage/user-notes.php?action=edit+22581 http://master.php.net/manage/user-notes.php?action=delete+22581 http://master.php.net/manage/user-notes.php?action=reject+22581

« previous php.notes (#32133) next »