Echo question

Why is this so:

when I do this :

echo 001600; 

it returns 896

:mad:

My guess would be PHP is reading that as a pre defined variable in the PHP core

well it is actually a mysql time format converted to a number something like this :

$time = 21:23:00
$a = str_replace(':','',$time);

returns -> 212300

Anyway I got it

echo ‘001600’;

cheers !

Simple answer here, when you prefix a number with 0, php interprets it as an octal number (base 8), when you print it it gets converted to decimal. Remove the prefixed zeroes and it will work.

any solution for this?

$a = ‘009699’;

if ($a > 001600){
return true;
}