PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CodeIgniter Plugin for Z-Ray
Show CodeIgniter application information in Z-Ray
Author: By
Last change:
Date: 2 years ago
Size: 581 bytes
 

Contents

Class file image Download
<documentation title="Elseif Declarations"> <standard> <![CDATA[ PHP's elseif keyword should be used instead of else if. ]]> </standard> <code_comparison> <code title="Valid: Single word elseif keyword used."> <![CDATA[ if ($foo) { $var = 1; } <em>elseif</em> ($bar) { $var = 2; } ]]> </code> <code title="Invalid: Separate else and if keywords used."> <![CDATA[ if ($foo) { $var = 1; } <em>else if</em> ($bar) { $var = 2; } ]]> </code> </code_comparison> </documentation>