I have a multidimensional array and I want to create new variables based on the keys.
I have written this code, but it returns NULL:
$a = array("test" => array("a", "b", "c"));
foreach($a as $key => $value){
if(is_array($value)){
$i = 0;
foreach($value as $v){
$i++;
$$key[$i] = $v;
}
}
}
var_dump($test);
?>
Where is the problem?