In PHP decbin function is used to convert anything to binary
Example:
<?php
$a = "3";
$b = 4;
echo decbin($a)."<br>";
echo decbin($b);
?>
Output:
11
100
Example:
<?php
$a = "3";
$b = 4;
echo decbin($a)."<br>";
echo decbin($b);
?>
Output:
11
100
No comments:
Post a Comment