Re: Is there a replicate function in PHP
| From: | Neil Freeman | Date: | Fri, 21 Jun 2002 16:06:08 +0000 |
| Subject: | Re: Is there a replicate function in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103295@lists.php.net to get a copy of this message | ||
echo str_repeat("*", 50);
Don wrote:
************************************************************************** This Message Was Virus Checked With : SAVI 3.58 May 2002 Last Updated 14th June 2002 ************************************************************************** Hi, I'd like to print one or more specific characters many times. For example, let's say I'd like to display the '*' 50 times on one line. Is there a function that will do this? Something like: ? replicate('*',50); Thanks, Don-- ---------------------------- Work: neil.freeman@asa.co.uk Home: neil@curvedvision.com Web: www.curvedvision.com ----------------------------