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

Variables

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

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in E:\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 E:\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 E:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39

Variables

PHP-Fusion Coding Style PHP-Fusion version 7.02.00



Variable names may only contain alphanumeric characters. Underscores are not permiLed.
Numbers are permiLed in variable names but are discouraged in most cases.
For instance variables that are declared with the "private" or "protected" modi.er, the .rst
character of the variable name must be a single underscore. This is the only acceptable applicaEon
of an underscore in a variable name. Member variables declared "public" should never start with
an underscore.
As with funcEon names (see secEon 3.3) variable names must always start with a lowercase leLer
and follow the "camelCaps" capitalisaEon convenEon.
Verbosity is generally encouraged. Variables should always be as verbose as pracEcal to describe
the data that the developer intends to store in them. Terse variable names such as "$i", $ii, $n and
"$m" are discouraged for all but the smallest loop contexts. If a loop contains more than 20 lines of
code, the index variables should have more descripEve names.
Variables names like $foo, $bar or $test are not permiLed.
  Опубликовано 04.06.2013 21:13:47 
 Перейти на форум:   
HTML-code and BB-code for blogs and forums

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


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

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