decoct():octal equivalent of decimal number

string decoct(int $number);
$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

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

Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net

    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-2022 All rights reserved worldwide Privacy Policy Disclaimer