From 59543d885aea8a9d42dad00ebd6d0d75b67e053a Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Fri, 14 Nov 2003 16:27:23 +0000 Subject: [PATCH] bugfixing #26209 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144354 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 45 ++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index d3342f6260..ae2f082012 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -750,6 +750,49 @@ while ($i++ < 5) { + + Ommiting the semicolon after continue can lead to + confusion. Here's an example of what you shouldn't do. + + + + + +]]> + + + One can expect the result to be : + + + + + + but this script will output : + + + + + + because the return value of the print + call is int(1), and it will look like the + optional numeric argument mentionned above. + + +