From f258d65696d5d31fe7eda026031eb3517f102485 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Fri, 17 Feb 2017 18:04:34 +0000 Subject: [PATCH] Improve example wrt. to CS Patch provided by anon user. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341918 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures/elseif.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/language/control-structures/elseif.xml b/language/control-structures/elseif.xml index 591df0f795..aeb8fb77fa 100644 --- a/language/control-structures/elseif.xml +++ b/language/control-structures/elseif.xml @@ -69,17 +69,17 @@ if ($a > $b) { $b): +if ($a > $b): echo $a." is greater than ".$b; -else if($a == $b): // Will not compile. +else if ($a == $b): // Will not compile. echo "The above line causes a parse error."; endif; /* Correct Method: */ -if($a > $b): +if ($a > $b): echo $a." is greater than ".$b; -elseif($a == $b): // Note the combination of the words. +elseif ($a == $b): // Note the combination of the words. echo $a." equals ".$b; else: echo $a." is neither greater than or equal to ".$b;