note 12528 modified in function.intval by didou
| From: | didou@php.net | Date: | Thu, 06 Nov 2003 14:04:01 +0000 |
| Subject: | note 12528 modified in function.intval by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59992@lists.php.net to get a copy of this message | ||
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
--was--
Remember that INTVAL can only work with values between -2147483648 and 2147483647. Anything smaller
or larger (respectively) and INTVAL will truncate it.
thus:
<PRE>
$value = 3010010001;
$newval = intval ($value);
echo $newval;
</PRE>
will return:
2147483647
http://www.php.net/manual/en/function.intval.php