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

Function and Method Usage

:: English Support Forums :: PHP-Fusion Coding Coding Style :: Function and Method Usage
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

Function and Method Usage
PHP-Fusion Coding Style PHP-Fusion version 7.02.00



Function arguments should be separated by a single trailing space amer the comma delimiter. The
following is an example of an acceptable invocaEon of a funcEon that takes three arguments:
Загрузить источник  PHP
  1. <?php
  2.  threeArguments(1, 2, 3);
  3. ?>

Call time pass--by--reference is strictly prohibited. See the funcEon declaraEons secEon for the
proper way to pass funcEon arguments by--Ѓ] reference.
In passing arrays as arguments to a funcEon, the funcEon call may include the "array" hint and may
be split into mulEple lines to improve readability. In such cases, the normal guidelines for wriEng
arrays sEll apply:
Загрузить источник  PHP
  1. <?php
  2.  threeArguments(array(1, 2, 3), 2, 3);
  3. ?>


Загрузить источник  PHP
  1. <?php
  2.  threeArguments(array(
  3.   1, 2, 3, 'PHP-Fusion', 'Solutions',
  4.   $a, $b, $c,
  5.   56.44, $d, 500
  6.  ), 2, 3);
  7. ?>

  Опубликовано 04.06.2013 20:50:04 
 Перейти на форум:   
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=150">Function and Method Usage : Function and Method Usage</a>


[url=https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=150]Function and Method Usage : Function and Method Usage[/url]

Голосования
Нравится логотип?
Всего голосов : 3
Перейти в ветку