I have a config.php file that looks like this
return array(
"array1"=>
array(
"array2"=>"value"
)
);
How can I dynamically extract array2 value using a function like this?
function getConfigValue(?)
{
$config = include("config.php");
return $config....
}