note 12528 deleted from function.intval by tularis
| From: | tularis@php.net | Date: | Sat, 11 Jun 2005 20:41:04 +0000 |
| Subject: | note 12528 deleted from function.intval by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90276@lists.php.net to get a copy of this message | ||
Note Submitter: rasmus at SPAMCAN dot lvcm dot com
----
Remember that INTVAL can only work with values between -2147483648 and 2147483647. Anything smaller
or larger (respectively) and INTVAL will truncate it.
thus:
<?php
$value = 3010010001;
$newval = intval ($value);
echo $newval;
?>
will return:
2147483647