PHP Array updating 2147483647 if >9 characters entered
I have the following input and it works fine unless the user enters >9 characters. On record 1002 the entry is 10 characters long and looks correct in the array, but updates as "2147483647". No matter what is entered if it is >9 characters it always returns this number. I have searched to entire project for 2147483647, but found nothing. Any ideas?
2147483647 is the highest positive value for a signed 32-bit integer. Something is casting it as an integer.
Vampireofdarkness
Just to elaborate a little more, this is (((2^32)/2) - 1) (0 counts!) and the 32-bit limit, which is where 64-bit computing comes into play. 2^64 is considerably higher.
Unsigned fields remove the need to divide by 2. Signed is essentially 2^31-1, whereas unsigned is 2^32-1