I have a function like this:
$conf = array ('test_value' => 1, 'test_value2' => 2);
function GetValueArray($array, $value)
{
return $array[$value];
}
Im using this function to receive a value from an array. My problem is that i cannot use this function like this:
GetValueArray('conf', 'test_value');
How could i convert 'conf' to the real array named conf to receive my 'test_value'?