I would like to make an array of arrays with keys associated, and I don't really know what is the proper way to do it. For example if I have
$array1 = array(
"foo" => "bar",
"bar" => "foo",
);
$array2 = array(
"foo2" => "bar2",
"bar2" => "foo2",
);
Would it be correct to write:
$key_array=array("first"=>$array1,
"second"=>$array2);
And, if not, how should I do this?
Thanks in advance