PHP str_pad() May 22, 2012 Pramod T P It pads a string to a certain length with another string Example <?php echo str_pad(“phpcode”,20,”z”); ?> Output phpcodezzzzzzzzzzzzz