we must use print there because echo can be used with more than one argument


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@162758 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2004-07-06 18:33:58 +00:00
parent 627cff89cd
commit 7041853c56

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.91 $ -->
<!-- $Revision: 1.92 $ -->
<chapter id="language.control-structures">
<title>Control Structures</title>
@ -453,7 +453,7 @@ for (; ; ) {
/* example 4 */
for ($i = 1; $i <= 10; echo $i, $i++);
for ($i = 1; $i <= 10; print $i, $i++);
?>
]]>
</programlisting>