Octal to Binary tool convert octal string to binary string. Many times we wants to convert octal to binary that time we can use PHP provides inbuilt functions octdec() and decbin(). We have to use two functions that we can convert octal number to binary.Many developers and programmers are using this tools in daily life.
There are two ways to convert a octal number to an binary number using built-in functions:
Use octdec to convert the octal number to decimal, and then use decbin to convert the numeric decimal value to an binary string:
$octString = "72";Use base_convert to convert the octal number directly to an binary number:
$octString = "76";