Convert decimal to binary in PHP
Description
The following code shows how to convert decimal to binary.
Example
//www.j a v a2s .c om
<?php
echo decbin("3") . "<br>";
echo decbin("1") . "<br>";
echo decbin("2014") . "<br>";
echo decbin("7");
?>
The code above generates the following result.