I am trying to figure out how strlen()
finds the length of a number. When I try the following:
echo strlen(00000000000000000000000000000000);
it outputs 1
but when I try
echo strlen(11111111111111111111111111111111111111111111111111111111);
it outputs 19
. Sometimes it does work properly like in this example:
echo strlen(19);
strlen()
outputs 2
. I know I can use the following:
echo strlen('00000000000000000000000000000000');
and it will output 32
but I want to figure out how it works with numbers.