decoct : Octal Number : Language Basics PHP Source Code


PHP Source Code » Language Basics » Octal Number »

 

decoct



<?php
$orig_dec = 34672;
$dec2oct = decoct($orig_dec);
$oct2dec = octdec($dec2oct);
echo "original decimal number: $orig_dec <br>";
echo "new octal number: $dec2oct <br>";
echo "back to decimal: $oct2dec <br>";
?>

           
       



HTML code for linking to this page:

    Related in same category :
Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Octal Number