[EMAIL PROTECTED] wrote:
Sorry, I don't quit understanding the site http://www.php.net/for...
So, would you mind to give me a example about it ?

for($i=0; $i<3; $i++) {
        print($i);
}

will print:

0
1
2

Basically in any expression like the following:
for(expr1; expr2; expr3) {
        // some code
}

expr1 is evaluated first.
then for as long as expr2 is true, "some code" followed by expr3 will be evaluated over and over.

So the example at the start of my message initially sets $i to 0, then repeats the code, adding 1 to $i each time, for as long as $i is less than 3.

Jasper

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to