|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-25 14:08 UTC] leigh@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: leigh
[2015-09-25 14:08 UTC] leigh@php.net
[2015-09-25 22:25 UTC] requinix@php.net
-Status: Closed
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 07:00:01 2026 UTC |
Description: ------------ Syntax of "Else If" in all major languages like C, C++, C#, Javascript, Java etc is "Else If", but in PHP it is "Elseif", WHY? Current Syntax: if (expression) { Block of statements; } elseif(expression) { Block of statements; } else { Block of statements; } Expected Syntax: if (expression) { Block of statements; } else if(expression) // Else if instead of Elseif { Block of statements; } else { Block of statements; }