For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > March 2006 > #36877 [Opn]: comma in expr1 undocumented in for ($i=1,$n=10;









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #36877 [Opn]: comma in expr1 undocumented in for ($i=1,$n=10;
colder@php.net

2006-03-28, 6:58 pm

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:

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.


Previous Comments:
------------------------------------------------------------------------

[2006-03-27 21:52:40] php-bugs at t43 dot mine dot nu

It is also undocumented for expr3.

------------------------------------------------------------------------

[2006-03-27 21:37:10] php-bugs at t43 dot mine dot nu

Description:
------------
Documentation issue:
The C-like clause for expr1 in
for ($i=0, $n=10; ...)
is accepted but not documented.
The corresponding C-like clause
$i=0, $j=1; outside a for is flagged as an error.



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=36877&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com