Re: [PHP] Replicate string or something similar

2002-08-19 Thread Saci
Thank you That's it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replicate string or something similar

2002-08-19 Thread Tom Rogers
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 -- PHP Gen

RE: [PHP] Replicate string or something similar

2002-08-19 Thread Martin Towell
str_repeat() -Original Message- From: Saci [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 1:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Replicate string or something similar In ASP I use the expression myvar = string(254,"A") to have a var filled with 254 characters 'A'