Req #70581 [Csd->Nab]: Else If Syntax
| From: | requinix@php.net | Date: | Fri, 25 Sep 2015 22:25:12 +0000 |
| Subject: | Req #70581 [Csd->Nab]: Else If Syntax | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196250@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: requinix@php.net
Reported by: khaweronline at gmail dot com
Summary: Else If Syntax
-Status: Closed
+Status: Not a bug
Type: Feature/Change Request
Package: *General Issues
Operating System: All OS
PHP Version: Irrelevant
Assigned To: leigh
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-09-25 14:08:52] leigh@php.net
PHP supports both "else if" and "elseif". Nothing to do here.
------------------------------------------------------------------------
[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