note 15242 added to function.sprintf

From: Date: Mon, 03 Sep 2001 05:59:29 +0000
Subject: note 15242 added to function.sprintf
Groups: php.notes 
Request: Send a blank email to php-notes+get-17552@lists.php.net to get a copy of this message
function addpadding($aStr,$qty) { $tempstr = sprintf("% {$qty}s",$aStr); $tempstr = str_replace" ", " ",$tempstr); return $tempstr; } this is a little function I have written to add html spaces in a string http://www.php.net/manual/en/function.sprintf.php

« previous php.notes (#17552) next »