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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yuw@php.net
New email:
PHP Version: OS:

 

 [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: Thu May 16 19:01:32 2024 UTC