phpMoot
phpMoot > PHP - Examples > decoct() and octdec()
Author: phpMoot August 30, 2010 0 Comments
PHP - Examples
<?php $orig_dec = 789; $dec2oct = decoct($orig_dec); $oct2dec = octdec($dec2oct); echo "original decimal number: $orig_dec <br>"; // 789 echo "octal number: $dec2oct <br>"; //1425 echo "back to decimal: $oct2dec <br>"; // 789 ?>
← Previous post
Next post →
Your email address will not be published. Required fields are marked *