PHP >= 5.6
composer require mnlnk/array
require __DIR__.'/vendor/autoload.php';
use Manuylenko\ArrayHelper\Arr;
$arr = [
//
];
Arr::set($arr, 'key', 'value1');
Arr::set($arr, 'key2.key3', 'value3');
$value = Arr::get($arr, 'key'))
$value = Arr::get($arr, 'key.key2'))
$value = Arr::get($arr, 'key', 'fallback'))
Arr::has($arr, 'key')
Arr::remove($arr, 'key')
Arr::wrap($arr, 'value')