Mecha CMS

Helper functions.

extend

Extend arrays to a single array.

2.2.0

extend(array $a, array $b, …, $recursive = true);

Example:

// Create default configuration values
$defaults = [
    'chunk' => 5,
    'deep' => 0,
    'sort' => [
        0 => 1,
        1 => 'path'
    ]
];

$A = extend($data, $defaults);