Brimbox Logo Brimbox Version 2.3.4 Released


Method to add a value to the global array ($array_global) typically with an associative string key $identifier and a numeric key. This function is be used in several default areas of the global array.

Class: bb_build, called as $main

File: bb_build.php (php)


function add_array($name, $identifier, $value, $key = NULL)


$main->function add_array($name, $identifier, $value, $key)

global $array_global

Note: if $key is omitted then value will be pushed onto the array (ie $array_global[name][identifier][] = $value;)

Parameter: $name (string)
Will add $value to the global array $array_global using keys $name and $identifier. The array will have another key also, usually an integer.

Parameter: $identifier (string)
An associative key for the array.

Parameter: $value (string)
The value associated with the array.

Parameter: $key (mixed)
A optional key, usually an integer.

Updated: 2017-08-21