PHP octdec() function
Complete PHP Math Reference
Definition and Usage
The octdec() function converts an octal number to a decimal number.
Syntax
Parameter |
Description |
oct_number |
Required. Specifies the octal number to convert |
Example
<?php
echo octdec("36") . "<br />";
echo octdec("12") . "<br />";
echo octdec("3063") . "<br />";
echo octdec("106");
?>
|
The output of the code above will be:
Complete PHP Math Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|