I'm trying to make something like
function config( $string ){
require 'configuration.php';
return $config[$string];
}
but i have a problem when my config has a 2D array. like:
$config['features'] = array(
'memcached' => TRUE,
'compress' => TRUE,
'gzip' => TRUE
);
how can i get config('features/memcached')
or if can we have three or more threaded array like config('features/memcached/version14/etc')
( example ) to return true
but still works when we do something like config('features')
returns the array just like the function above. any ideas ?