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.
Problem is with PHP I don't understand how the conversion system with octals works.
A specific example is that I'm trying to convert and compare all of these integer based numbers with strings.
Is it possible to convert an octal, such as 00234 to a string like "00234" so that I can compare it?
edit - adding a specific example. I would like to be able to run str functions on the serial like below.
$serial = 00032432; // coming from DB
if(substr($serial, 0, 1) == '0') {
// do something
}