在下面的數組中,如何將新數組推送到指定位置的$ options數組中?將數組插入指定位置的指定位置
$options = array (
array("name" => "My Options",
"type" => "title"),
array("type" => "open"),
array("name" => "Test",
"desc" => "Test",
"id" => $shortname."_theme",
"type" => "selectTemplate",
"options" => $mydir),
//I want the pushed array inserted here.
array("name" => "Test2",
"desc" => "Test",
"id" => "test2",
"type" => "test",
"options" => $mydir),
array("type" => "close")
);
if(someCondition=="met")
{
array_push($options, array("name" => "test",
"desc" => "description goes here",
"id" => "testMet",
"type" => "checkbox",
"std" => "true"));
}