I need convert a string into an integer. The string is F0000099; it is stored in a variable I am able to split the string with explode(),
but when I turn the second part into an integer with (int), I loose the leading zeroes. How can I solve that? below is an example.
$myVar = explode("F", $group);
$int= $id[1];
$convert = (int)$int;
$convert = $convert +1;
print ("&convert=$convert");
printed the number is 100 instead of 0000100.
Thanks in advance for your help.