RE: [PHP] Multiple text using echo
| From: | Tommy Claasens - Q Data KZN | Date: | Fri, 05 Jul 2002 10:15:17 +0000 |
| Subject: | RE: [PHP] Multiple text using echo | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105606@lists.php.net to get a copy of this message | ||
Hi try this
if ($foo ==2)
{
for ($bar = 0;$bar < $foo;$bar++)
{
echo $fido;
}
}
-----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