Source Code:
(back to article)
<?php $decimal_number = 15; // Convert the decimal number to an octal number using the decoct() function $octal_number = decoct($decimal_number); // Output the octal number echo $octal_number; ?>
Result:
Report an issue