octdec(): decimal equivalent of octal number
number octdec(string $octal_number);
Parameter | DESCRIPTION |
$octal_number | Required : 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
?>
This article is written by plus2net.com team.
plus2net.com
|