Hello,
I need to convert a string variable to BIGINT and store it into the mysql database. I have used settype() but its removing my leading zero in the string.
For example,
$new_id1="12";
$new_id2="345";
$zero="0";
$id="{$zero}{$zero}{$new_id1}{$new_id2}";
settype($id,"float");
echo $id;
output:
12345 // Instead of getting 0012345
The above code removes 00 (leading zeros).Can someone help me how to keep the zeros along with variable type as float??
Help would be appreciated
Thanks.