note 5623 deleted from str_repeat by jimw
| From: | jimw@php.net | Date: | Tue, 10 Jul 2001 02:56:15 +0000 |
| Subject: | note 5623 deleted from str_repeat by jimw | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15146@lists.php.net to get a copy of this message | ||
<pre>function str_repeat($input, $mult)
{
$ret = "";
while ($mult > 0) {
$ret .= $input;
$mult --;
}
return $ret;
}
</pre>
should do the same thing