Pad a string to a certain length with another string : String Pad « String « PHP






Pad a string to a certain length with another string


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

           
       








Related examples in the same category

1.str_pad: 80