Learning PHP and MySQL

Example 11-02 printf puts the numbers into the string

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

When called from a web browser, the code in Example 11-2 displays Figure 11-2.

Posted by on 08/18 at 12:27 PM

Next entry: Example 11-03 Displaying the same number in different formats

Previous entry: Example 11-01 Displaying a number in binary format

<< Back to main