I\'m working with a database that has a bunch of serial numbers that are prefixed with leading 0\'s.
So a serial number can look like 00032432 or 56332432.
$serial = 00032432; //here you have an octal number $serial= strval($serial); //now you have a string if ($serial[0]=="0") { //do something }