RE: [PHP] Using while as for...
| From: | PHPBeginner.com | Date: | Sat, 24 Feb 2001 06:19:02 +0000 |
| Subject: | RE: [PHP] Using while as for... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41462@lists.php.net to get a copy of this message | ||
you can do
while($count<=10)
{
echo "Number is $count <BR>\n";
$count++;
}
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Felipe Lopes [mailto:php4@mailbr.com.br]
Sent: Wednesday, January 24, 2001 2:46 AM
To: php-general@lists.php.net
Subject: [PHP] Using while as for...
I was trying to code the following script using while instead of for,
but I'm havig a lot of problems...Is it possible to do what I want? for
($count = 0; $count <= 10; $count++){ echo "Number is $count <BR>\n"; }
Could anyone tell me how is it with while instead of for?? Thank you!!
Felipe Lopes
MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net