Re: Multiple text using echo

From: Date: Fri, 05 Jul 2002 10:23:36 +0000
Subject: Re: Multiple text using echo
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105607@lists.php.net to get a copy of this message
Hi Craig You could just do: **** $text_to_print =3D "Some text<br>"; $amount_of_times =3D 10; for ($index=3D0; $index<$amount_of_times; $index++) print $text_to_print; **** Is that what you are after? Regards John > -----Original Message----- > From: Craig [mailto:craig@sitedesign.net] > Sent: Fri, 05 Jul 2002 12:09 > To: php-general@lists.php.net > Subject: [PHP] Multiple text using echo > > > Is there a way i can use php to echo text x amounts of times based on a > condition > > for example > > if $foo = 2 > echo $fido * 2 > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#105607) next »