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