Helix Installation   Getting Started   Reference Documentation   Global Functions   Quick Start
ModulesClassesFunctions
 

Function Reference

lpad ( string , size , char [" "] )

Description
No description.
 
Parameters
requiredstring
requiredsize
optionalchar [" "]
 
Code
662  function lpad($string, $size, $char=" ")
663  {
664      $padding = $size-strlen($string);
665      for ($i=1; $i<=$padding; $i++)
666      {
667          $string = $char . $string;
668      }
669      return $string;
670  }
Get Helix PHP Framework at SourceForge.net. Fast, secure and Free Open Source software downloads