note 10336 added to str_pad

From: Date: Thu, 28 Dec 2000 22:34:01 +0000
Subject: note 10336 added to str_pad
Groups: php.notes 
Request: Send a blank email to php-notes+get-9163@lists.php.net to get a copy of this message
In earlier versions of PHP you want to declare a function like: function str_pad($String, $Lenght) { if (strlen($String) < $Lenght) { $String .= str_repeat(" ", $Lenght - strlen($String)); } return $String; } http://www.php.net/manual/function.str-pad.php

« previous php.notes (#9163) next »