<?Php
echo decoct(5); // Output 5
echo "<br>";
echo decoct(55); // Output 67
echo "<br>";
echo decoct(500); // Output is 764
echo "<br>";
echo decoct(658); // Output is 1222
echo "<br>";
echo decoct(3000); // Output is 5670
?>
Syntax
string decoct(int $number);
Parameter | DESCRIPTION |
---|---|
$number | Required : Decimal number as Input to convert to equivalent octal base number. |