I am working on a project in PHP and trying to use one of the parameters in $_POST, unfortunately, I want to send the result to a web service that accepts this parameter as a whole. Therefore, I need to specify type c (int), but this work will change the parameter value for example, something like this:
$o = 4924869620;
$c = (int) $o;
then c will matter 629902324
Why is this happening? how can i keep the value the same? I also used intval()and it will also change the meaning
source
share