Working with PHP Octals and String conversions
Posted
by krio
on Stack Overflow
See other posts from Stack Overflow
or by krio
Published on 2010-03-22T20:47:06Z
Indexed on
2010/03/22
20:51 UTC
Read the original article
Hit count: 329
php
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?
© Stack Overflow or respective owner