note 12208 deleted from function.sprintf by didou

From: Date: Wed, 15 Oct 2003 17:29:21 +0000
Subject: note 12208 deleted from function.sprintf by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58649@lists.php.net to get a copy of this message
Note Submitter: mvsmit@homeNO_SPAM.nl ---- If i'm not completely stupid then this is a useful function to add to your library. IT ADDS SPACES TO A VARIABLE: function rspace($string, $length) { $result = sprintf("%{$length}s", $string); return($result); } EXAMPLE: $text = rspace($text,50); If it doesn't seem to work take a peek at the html output source.

« previous php.notes (#58649) next »