PHP Classes

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

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Nolimitbuzz WP Theme   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: Nolimitbuzz WP Theme
WordPress theme to used as start of new themes
Author: By
Last change:
Date: 7 days 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>