I would require help to convert a string number to integer but the value must remain same. For ex:
- Code: Select all
$str="20121016001";
$num=(int)$str;
echo $num;
This above prints 2147483647. But I want to print the exact value as entered in $str variable but should be of integer type.
Thanks in advance,
Regards,
Vipin


