note 15755 added to function.intval
| From: | cleong at letstalk dot com | Date: | Mon, 01 Oct 2001 21:21:53 +0000 |
| Subject: | note 15755 added to function.intval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18443@lists.php.net to get a copy of this message | ||
intval() handles overflow differently depending on the type of the argument.
intval('10000000000') = 2147483647
intval(1e10) = 1410065408
intval(float) yields essentially non-defined result when the argument is beyond the range of int.
--
http://www.php.net/manual/en/function.intval.php
http://master.php.net/manage/user-notes.php?action=edit+15755
http://master.php.net/manage/user-notes.php?action=delete+15755
http://master.php.net/manage/user-notes.php?action=reject+15755