PHP Left Padding Using Default Of Spaces – String Function

<?php
printf("<pre>Space padding can be tricky in HTML %5d.

“, 42);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.