note 85848 added to function.is-float

From: Date: Sat, 20 Sep 2008 16:29:40 +0000
Subject: note 85848 added to function.is-float
Groups: php.notes 
Request: Send a blank email to php-notes+get-144575@lists.php.net to get a copy of this message
If you want to test whether a string is containing a float, rather than if a variable is a float, you can use this simple little function: function isfloat($f) return ($f == (string)(float)$f); ---- Server IP: 92.48.74.199 Probable Submitter: 82.17.125.106 ---- Manual Page -- http://www.php.net/manual/en/function.is-float.php Edit -- https://master.php.net/note/edit/85848 Del: integrated -- https://master.php.net/note/delete/85848/integrated Del: useless -- https://master.php.net/note/delete/85848/useless Del: bad code -- https://master.php.net/note/delete/85848/bad+code Del: spam -- https://master.php.net/note/delete/85848/spam Del: non-english -- https://master.php.net/note/delete/85848/non-english Del: in docs -- https://master.php.net/note/delete/85848/in+docs Del: other reasons-- https://master.php.net/note/delete/85848 Reject -- https://master.php.net/note/reject/85848 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144575) next »