Mega Code Archive

 
Categories / Php / Strings
 

Pad a string to a certain length with another string

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