Re: Replicate string or something similar
| From: | Tom Rogers | Date: | Tue, 20 Aug 2002 03:35:53 +0000 |
| Subject: | Re: Replicate string or something similar | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113288@lists.php.net to get a copy of this message | ||
Hi,
Tuesday, August 20, 2002, 1:04:12 PM, you wrote:
S> In ASP I use the expression myvar = string(254,"A")
S> to have a var filled with 254 characters 'A'
S> What is the similar one in PHP?
Try this:
$string = array();
$string = array_pad($string,254,'A');
--
regards,
Tom