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
<?php
threeArguments(1,2,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
<?php
threeArguments(array(1,2,3),2,3);
?>
PHP
<?php
threeArguments(array(
1,2,3,'PHP-Fusion','Solutions',
$a,$b,$c,
56.44,$d,500
),2,3);
?>
Опубликовано 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]