+ 7
Decimal to Binary conversion
I have this program which accepts decimal number and convert it to its respective binary number. Can any one write this code using php or javascript? https://code.sololearn.com/c2sFwvP1imhu/?ref=app
2 Answers
+ 1
$decimal = 14;
echo "Binary value: " . decbin($decimal);
http://php.net/manual/en/function.decbin.php