Re: Largest INT val?
| From: | Tom Rogers | Date: | Thu, 08 May 2003 11:05:12 +0000 |
| Subject: | Re: Largest INT val? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146820@lists.php.net to get a copy of this message | ||
Hi,
Thursday, May 8, 2003, 4:43:55 AM, you wrote:
JC> Hi
JC> Does any know what the largest +/- INTEGER value that PHP supports?
JC> Thanks,
JC> Jason
You can get the integer size in bytes like this
echo 'Integer size '.strlen(pack("i",-1)).' bytes <br>';
--
regards,
Tom