in reply to Base10 to Base2.

$binary = sprintf('%b', $decimal);
-sauoq
"My two cents aren't worth a dime.";