PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ElseIfDeclarationStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
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>