PHP Math Function : decoct()

The PHP decoct() function is used to convert a decimal number to an octal number. The syntax is :
 decoct( number );
Example :
<?php

  echo decoct(150) . "<br/>";
  echo decoct(45) . "<br/>";
  echo decoct(15) . "<br/>";

?>
Output :

226
55
17


Next Topic :