Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Pad a string to a certain length with another string

Mon Oct 27, 2008 12:11 pm

Code:

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




Post a reply
  Related Posts  to : Pad a string to a certain length with another string
 get string length in asp     -  
 recursive string reversal- reverse string     -  
 Splitting a String Based on a Found String     -  
 check if string ends with specific sub-string in php     -  
 check if string start with a specific sub-string in PHP     -  
 String token for string split     -  
 String to sql.Date     -  
 get string size in c++     -  
 String Flatten (C++)     -  
 find a string     -