Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
Switch PHP-Fusion Coding Style PHP-Fusion version 7.02.00
Control statements wriLen with the "switch" statement must have a single space before the
opening parenthesis of the condiEonal statement and amer the closing parenthesis.
All content within the "switch" statement must be indented using one tab. Content under each
"case" statement must be indented using an addiEonal one tab.
PHP
<?php
switch($numPeople){
case1:
break;
case2:
break;
default:
break;
}
?>
The construct default should never be omiLed from a switch statement.
Note: It is someEmes useful to write a case statement which falls through to the next case by not
including a break or return within that case. To disEnguish these cases from bugs, any case
statement where break or return are omiLed should contain a comment indicaEng that the break
was intenEonally omiLed.