note 21189 added to function.is-int
| From: | michael at thingmand dot dk | Date: | Thu, 02 May 2002 14:22:35 +0000 |
| Subject: | note 21189 added to function.is-int | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30083@lists.php.net to get a copy of this message | ||
Use this to find out if a decimal, actual is an integer! (eg. 20.00)
if (intval($param) == $param)
print "$param is integer...";
else
print "$param is NOT integer...";
- thx to nefer@ncport.ru
--
http://www.php.net/manual/en/function.is-int.php
http://master.php.net/manage/user-notes.php?action=edit+21189
http://master.php.net/manage/user-notes.php?action=delete+21189
http://master.php.net/manage/user-notes.php?action=reject+21189