View Single Post
Old 09-14-2008, 01:04 PM   #8 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Quote:
Originally Posted by Yoosha View Post
Xenon: You can use strlen.

No i can't use that. This is for String, not Integer.
StringLength no IntegerLength!
Test this:

$X= 8766435322364545664565464654676;
echo(strlen($X));
Its because the number is higher than PHP_INT_MAX, you need to cast it to a string like the others said before it will work :)
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote