2147483647
Like this blog? Consider exploring one of our sponsored banner ads...
I had someone ask me the other day why they were getting 2147483647 as the value for some operation. Any time you see this number, it should be a red flag that you are hitting the ceiling of the values that can be the 4 byte integer.
So here in this classic newbie mistake, grooming a phone number by casting it to an integer.
$phone = '6195551234'; echo (int) $phone;
Will result in 2147483647.
You also see 2147483647 sometimes in database records where the field type is INT and the value you are inserting is greater than 2147483647. Hope this helps!
1 Comment
Jump to comment form | comments rss [?]