php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #29030 "for" loop sample on documentation doesn't work
Submitted: 2004-07-06 15:50 UTC Modified: 2004-07-06 20:34 UTC
From: yuw@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.6 OS: Linux
Private report: No CVE-ID: None
 [2004-07-06 15:50 UTC] yuw@php.net
Description:
------------
A sample on 
http://www.php.net/manual/en/control-structures.for.php
does not work.

not work:
     for ($i = 1; $i <= 10; echo $i, $i++);

#work:  
#    for ($i = 1; $i <= 10; print $i, $i++);


Expected result:
----------------
12345678910


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-06 20:34 UTC] nlopess@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.
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=7041853c56d622692ff9b4b8670485665dfde91f
Log: fix #29030 we must use print there because echo can be used with more than one argument
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 20:01:30 2024 UTC