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
Numerically Indexed Arrays PHP-Fusion Coding Style PHP-Fusion version 7.02.00
NegaEve numbers are not permiLed as indices.
An indexed array may start with any non--Ѓ] negaEve number, however all base indices besides 0 are discouraged.
When declaring indexed arrays with the Array funcEon, a trailing space must be added amer each
comma delimiter to improve readability:
It is permiLed to declare mulE--Ѓ] line indexed arrays using the "array" construct. The iniEal array
item must begin on the following line. It should be padded at one indentaEon level greater than
the line containing the array declaraEon, and all successive lines should have the same
indentaEon; the closing paren should be on a line by itself at the same indentaEon level as the line
containing the array declaraEon:
PHP
<?php
$sampleArray=array(
1,2,3,"PHP-Fusion","Solutions",
$a,$b,$c,
56.44,$d,500
);
?>
We require using a trailing comma for the last item in the array; this minimises the impact of
adding new items on successive lines, and helps to ensure no parse errors occur due to a missing
comma.