RE: [PHP] For Loops !
| From: | Jason Stechschulte | Date: | Mon, 31 Jul 2000 17:29:20 +0000 |
| Subject: | RE: [PHP] For Loops ! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9204@lists.php.net to get a copy of this message | ||
So you can put more than one statement in each
section.
for($i = 0, $k = 5; $i < $k; $i++) {}
Jason Stechschulte
jpstech@nc.edu
-----Original Message-----
From: matter [mailto:matter]On Behalf Of Matt
Sent: Monday, July 31, 2000 1:08 PM
To: php-general@lists.php.net
Subject: [PHP] For Loops !
Hello mailing list ! :)
Although I have been programming for quite some
time now
I never really understood for loops even though I
use
them in almost every script. It has a strange
little
pattern and I always thought it had another
meaning,
is this true or is that just how a for loop is
structured ?
for ($var=0;$var<10;$var++) { }
Why does it use semi colons rather than commas ?
Is for some kind of function with those three
params ?
Hmm ... it's probably just me at 3am :)
Regards, Matt
--
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