note 12747 deleted from function.sprintf by derick
| From: | derick@php.net | Date: | Tue, 16 Mar 2004 10:49:56 +0000 |
| Subject: | note 12747 deleted from function.sprintf by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66903@lists.php.net to get a copy of this message | ||
Note Submitter: njoyme@pluginpool.com
----
This worx too:
$txt = "Abracadabra"; // actual string
$fit = 16; // how many digits to use
$fill = "."; // what to fill
$digits = sprintf ("%'".$fill.$fit."s", $txt);