decoct():octal equivalent of decimal number

string decoct(int $number);
ParameterDESCRIPTION
$numberRequired : Decimal number as Input to convert to equivalent octal base number.
The output is string converted to octal base system.

Example : Decimal to octal

<?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
?>


plus2net.com




Post your comments , suggestion , error , requirements etc here .




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer