Pad a string to a certain length with another string : String Pad : String PHP Source Code


PHP Source Code » String » String Pad »

 

Pad a string to a certain length with another string




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

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo String
» String Pad