PHP base_convert() - Math Functions
What is base_convert Function?
How to convert a base value to binary number?
The "base_convert()" function converts a number between arbitrary bases.
In the above syntax "number" is the orginal value, "frombase" is the original base of number, "tobase" the base to convert to.
$hex = 'A37334';
In the above example the hexa decimal number "A37334" is converted to binary number as the "frombase" value is "16", "tobase" value is "2".