How to use decoct in PHP
This article describe about decoct() Function in PHP.
decoct() Function
For convert decimal number to octal number use decoct() function.
Syntax
Parameter |
Description |
dec_number |
Define the decimal number to convert |
Example
<html>
<body>
<?php
echo decoct("50") . "<br />";
echo decoct("20") . "<br />";
echo decoct("399") . "<br />";
echo decoct("55");
?>
</body>
</html> |
Output

You may also want to read these related articles Click here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here