#36877 [Opn]: comma in expr1 undocumented in for ($i=1,$n=10;

From: Date: Thu, 30 Mar 2006 14:30:10 +0000
Subject: #36877 [Opn]: comma in expr1 undocumented in for ($i=1,$n=10;
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969372526@lists.php.net to get a copy of this message
ID: 36877 Updated by: colder@php.net Reported By: php-bugs at t43 dot mine dot nu Status: Open Bug Type: Documentation problem Operating System: na PHP Version: Irrelevant New Comment: Thanks for the note arpad, here is the updated patch: http://patches.colder.ch/control-structures-for-2.patch Previous Comments: ------------------------------------------------------------------------ [2006-03-30 11:33:58] arpad@php.net You can use a comma in expr2 too, it's equivalent to || but much lower in precedence. ------------------------------------------------------------------------ [2006-03-30 09:29:48] php-bugs at t43 dot mine dot nu I thank you sincerely for the answer. ------------------------------------------------------------------------ [2006-03-30 04:10:15] simp@php.net This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. thanks for the patch ------------------------------------------------------------------------ [2006-03-28 17:46:01] colder@php.net Note that the use of multiple expressions in expr3 was already mentionned in example4. Anyway, here is a suggestion of a possible improvement: http://patches.colder.ch/control-structures-for.patch Thanks in advance. ------------------------------------------------------------------------ [2006-03-27 21:52:40] php-bugs at t43 dot mine dot nu It is also undocumented for expr3. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36877 -- Edit this bug report at http://bugs.php.net/?id=36877&edit=1

« previous php.doc (#969372526) next »