note 25893 added to function.is-numeric
| From: | jernberg at fairytale dot se | Date: | Thu, 10 Oct 2002 09:19:43 +0000 |
| Subject: | note 25893 added to function.is-numeric | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37882@lists.php.net to get a copy of this message | ||
i just want to mention this (so you dont make the same mistakes as i did):
$id = "somestring";
if( is_string( $id ) && $id != 0 )
{
echo "a string"
}
won't print "a string"...
--
http://www.php.net/manual/en/function.is-numeric.php
http://master.php.net/manage/user-notes.php?action=edit+25893
http://master.php.net/manage/user-notes.php?action=delete+25893
http://master.php.net/manage/user-notes.php?action=reject+25893