note 70668 added to function.is-numeric

From: Date: Mon, 23 Oct 2006 16:05:06 +0000
Subject: note 70668 added to function.is-numeric
Groups: php.notes 
Request: Send a blank email to php-notes+get-119024@lists.php.net to get a copy of this message
Note that the even simpler functions for checking if a variable contains an odd or even number below don't produce good results if you apply them to arguments which aren't numeric; I guess that was the idea of the originals. e.g. using the functions defined in two posts below.. IS_ODD(null) returns false IS_EVEN(null) returns true is_odd(null) returns false is_even(null) returns false ---- Server IP: 83.138.144.80 Probable Submitter: 84.9.129.31 ---- Manual Page -- http://www.php.net/manual/en/function.is-numeric.php Edit -- https://master.php.net/note/edit/70668 Del: integrated -- https://master.php.net/note/delete/70668/integrated Del: useless -- https://master.php.net/note/delete/70668/useless Del: bad code -- https://master.php.net/note/delete/70668/bad+code Del: spam -- https://master.php.net/note/delete/70668/spam Del: non-english -- https://master.php.net/note/delete/70668/non-english Del: in docs -- https://master.php.net/note/delete/70668/in+docs Del: other reasons-- https://master.php.net/note/delete/70668 Reject -- https://master.php.net/note/reject/70668 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119024) next »