$odd = array("1","3","5","7","9");
if(inarray(substr($var,strlen($var)-1,1),$od)
{
//haha
}
else
{
//even
}
p.s. sorry for the direct mail
Jonas Rosling wrote:
Hi all,
is there any easy why to check if a value is odd or not?
Thanks // Jonas
--
PHP General Mailing List (http://www.ph
Can someone please advise a faster solution to do what I'm doing
below? All I need to be able to do is determine if any of the
strings in the array are contained in $q. The method I have works,
but I'm sure its not the most efficient way to do it.
$dirtyWord = array("UNION","LOAD_FILE
2 matches
Mail list logo