I have a config.php file that looks like this
return array( \"array1\"=> array( \"array2\"=>\"value\" ) );
How can I dy
$path = 'array1.array2'; $value = array_reduce( explode('.', $path), function (array $value, $key) { return $value[$key]; }, $config );