I tried (int) "4209531264"
and intval("4209531264")
but sadly all I get is 2147483647
(I realize this is because of 32 bit architecture or some php dependencies or something).
I came up with "4209531264" + 0
which returns the correct result but it is surprising to see it working since it is beyond maxint.
but the real question: is this the "right way" of converting string to long?
edit:
(float)
that is.
thanks for the comments! eye opening!