PHP Pad String To Certain Length With Another String – String Function

 
    <?php
   $header = "Log Report";
   echo str_pad ($header, 20, "=+", STR_PAD_BOTH);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.