This question already has an answer here:
- Zero-pad digits in string 3 answers
- Number with 0 on the front? [closed] 2 answers
I am trying to extract part of a number using sustr() but the following is not working:
$num = 012014;
echo substr($num, 0,2);
returns 51
BUT
$num = '012014';
echo substr($num, 0,2);
returns 01
I want it to return 01 can someone help me
</div>