Learning PHP and MySQL
Example 11-04 Using left zero padding
<?php
printf("Zero padding can help alignment %05d.", 42);
?>
Padding with zeros gives us the result shown in Figure 11-3.
Posted by on 08/18 at 12:30 PM
Next entry: Example 11-05 Using left space padding
Previous entry: Example 11-03 Displaying the same number in different formats