Req #70581 [Opn->Csd]: Else If Syntax

From: Date: Fri, 25 Sep 2015 14:08:52 +0000
Subject: Req #70581 [Opn->Csd]: Else If Syntax
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196242@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70581&edit=1 ID: 70581 Updated by: leigh@php.net Reported by: khaweronline at gmail dot com Summary: Else If Syntax -Status: Open +Status: Closed Type: Feature/Change Request Package: *General Issues Operating System: All OS PHP Version: Irrelevant -Assigned To: +Assigned To: leigh Block user comment: N Private report: N New Comment: PHP supports both "else if" and "elseif". Nothing to do here. Previous Comments: ------------------------------------------------------------------------ [2015-09-25 13:45:09] khaweronline at gmail dot com 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; } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70581&edit=1

« previous php.bugs (#196242) next »