Syntax of bindec
number bindec(string binary)
Converts binary to a decimal value. Up to a 32-bit number, or 2,147,483,647 decimal, can be converted.
<?php
echo bindec('110011') . "\n";
echo bindec('000110011') . "\n";
echo bindec('111');
?>
Output of bindec
51 51 7