PHP Using Left Zero Padding – String Function

<?php
printf("Zero padding can help alignment %05d.", 42);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.