note 15242 deleted from function.sprintf by derick
| From: | derick@php.net | Date: | Tue, 16 Mar 2004 10:49:40 +0000 |
| Subject: | note 15242 deleted from function.sprintf by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66901@lists.php.net to get a copy of this message | ||
Note Submitter: duncanmadcow@hotmail.com
----
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