Source Code:
(back to article)
<?php $decimal_number = 10; // Convert the decimal number to a binary number using the decbin() function $binary_number = decbin($decimal_number); // Output the binary number echo $binary_number; ?>
Result:
Report an issue