webCOMAND

io_comand_util\array_util

Analyze and manipulate PHP arrays.

Example

use \io_comand_util\string_util;

// output: Some values: 4 KB, 2 KB…
$array1 = [
    'people' => [
        'Mary',
        'Bill'
    ],
    'places' => [
        'Canada',
        'United States'
    ]
];
$array2 = [
    'places' => [
        'Mexico'
    ]
];
$array3 = array_util::merge_recursive($array1, $array2);
echo(print_r($array3, TRUE));