Learning PHP and MySQL

Example 11-01 Displaying a number in binary format

<?php
printf
("The  computer  stores  the  number  42  internally  as  %b.",42);
?>

This code then produces the output shown in Figure 11-1.

Posted by on 08/18 at 12:21 PM

Next entry: Example 11-02 printf puts the numbers into the string

Previous entry: Example 10-14 The new table template

<< Back to main