octdec(): decimal equivalent of octal number

number octdec(string $octal_number);
ParameterDESCRIPTION
$octal_numberRequired : Octal number string as Input to convert to equivalent decimal base number.
The output is number converted to decimal base system.

Example : Octal to Decimal

<?Php
echo octdec(5); // Output 5 
echo "
"; echo octdec(45); // Output 37 echo "
"; echo octdec(400); // Output is 256 echo "
"; echo octdec(657); // Output is 431 echo "
"; echo octdec(3000); // Output is 1536 ?>


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