note 45652 deleted from function.is-numeric by tularis

From: Date: Tue, 14 Sep 2004 10:54:37 +0000
Subject: note 45652 deleted from function.is-numeric by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76661@lists.php.net to get a copy of this message
Note Submitter: user24 at gmail dot com ---- in response to joe at kewlmail dot net regarding "Please note that this function will work properly unless the user fat fingers an extra decimal in the wrong place. " if you change the line <? $money = explode(".", $userString); ?> to instead read <? $money = explode(".", $userString,2); ?> this will sort that issue; if $userString=="123.45.67" then $money[0]=="123" and $money[1]=="45.67";

« previous php.notes (#76661) next »