Re: Declaring vars as INT ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also, look at this function:
http://www.php.net/ctype_digit

Jordan


On Oct 21, 2005, at 2:39 PM, Chris Knipe wrote:

Hi,

Uhm... Let's take the below quickly:

Function DoSomething($Blah) {
  $Blah = (int) $Blah;
  return $Blah
}

$Blah, cannot be larger than 2147483647, and sometimes, I get negative
integers back from the above function.

This is with PHP 4.4.0 on FreeBSD 5.4-STABLE.  Can anyone else perhaps
confirm this, and if it is indeed true, is this a bug, or a limitation
somewhere on PHP?  Any other ways to confirm that *large* numbers, are
indeed integers?  I'm working with numbers in the form of yyyymmddsss
(20051025001 for today for example)

Thanks,
Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux