Array question

Can I create an element of an array that is an array. For example the second “value” element in the array below. Can that be an array?

$arr1 = array(
“nameid” => array(“id” => “01”, “value” => 0),
“name2 id” => array(“id” => “02”, “value” => array())

And if so, how would I set it?

$arr1[‘name2 id’][‘value’][0] = “newval1”;
$arr1[‘name2 id’][‘value’][1] = “newval2”;

Try it and see what happens.

Ya, it wasn’t working which is why I asked but I had another problem. I fixed that and it works fine now