note 107500 added to control-structures.for
| From: | Anonymous | Date: | Tue, 14 Feb 2012 03:28:50 +0000 |
| Subject: | note 107500 added to control-structures.for | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186112@lists.php.net to get a copy of this message | ||
Regarding [eduardofleury at uol dot com dot br 14-Jun-2007 06:18]; here's a slightly more
compact form of your program (excluding the demonstration of $p and its use as a
variable-by-reference):
<?php
//this is a different way to use the 'for'
//Essa é uma maneira diferente de usar o 'for'
for($i = $x = $z = 1; $i <= 10; $z = ++$i + $x+=2){
print "\$i = $i , \$x = $x , \$z = $z <br />";
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 72.219.151.91
----
Manual Page -- http://www.php.net/manual/en/control-structures.for.php
Edit -- https://master.php.net/note/edit/107500
Del: integrated -- https://master.php.net/note/delete/107500/integrated
Del: useless -- https://master.php.net/note/delete/107500/useless
Del: bad code -- https://master.php.net/note/delete/107500/bad+code
Del: spam -- https://master.php.net/note/delete/107500/spam
Del: non-english -- https://master.php.net/note/delete/107500/non-english
Del: in docs -- https://master.php.net/note/delete/107500/in+docs
Del: other reasons-- https://master.php.net/note/delete/107500
Reject -- https://master.php.net/note/reject/107500
Search -- https://master.php.net/manage/user-notes.php