note 1076 modified in control-structures.for by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 19:23:42 +0000 |
| Subject: | note 1076 modified in control-structures.for by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25241@lists.php.net to get a copy of this message | ||
You can use more than just one expression for expr1, expr2 an expr3, but if you use more than one in
expr2, both must be true!
for($i=0,$n=count($array); $i<$n; $i++) print $array[$i];
--was--
You can use more than just one expression for expr1, expr2 an expr3, but if you use more than one in
expr2, <b>both</b> must be true!<br>
<pre>for($i=0,$n=count($array); $i<$n; $i++) print $array[$i];</pre>
http://www.php.net/manual/en/control-structures.for.php