have look at the function 'str_pad'
http://www.php.net/manual/en/function.str-pad.php
> -Original Message-
> From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
> Sent: vendredi 21 juin 2002 17:57
> To: 'Don'; php list
> Subject: RE: [PHP] Is there a replicate
I don't know if the function exists, but it should be easy to create.
Something like this:
function replicate($Repeat, $RepeatCount)
{
$Results = "";
if ( ($RepeatCount < 1) or ($Repeat == "") )
return false;
for ($i=0; $i < $RepeatCount;$i++)
echo str_repeat("*", 50);
Don wrote:
> **
> This Message Was Virus Checked With : SAVI 3.58 May 2002
> Last Updated 14th June 2002
> **
>
> Hi,
>
> I'
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
4 matches
Mail list logo