Авторизация
 Регистрация   Войти   Забыли пароль? 

Switch

:: English Support Forums :: PHP-Fusion Coding Coding Style :: Switch
Admin  Распечатать сообщение

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
  1. <?php
  2.  switch ($numPeople) {
  3.   case 1:
  4.      break;
  5.   case 2:
  6.      break;
  7.   default:
  8.      break;
  9.  }
  10.  
  11. ?>

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.
  Опубликовано 04.06.2013 20:38:39 
 Перейти на форум:   
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=148">Switch : Switch</a>


[url=https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=148]Switch : Switch[/url]

Голосования
Как Вы предпочитаете покупать ссылки ?
Всего голосов : 3
Перейти в ветку