如果我得到一组
的数组值,请说$array1=array(
“i1” => array(“v1” ,”v2”, “v3”)
, “i2” => “v4”
, “i3” => array(
[0] => “v5”
, [1] => “v6”
, [2] => “v7”
)
, “i4” => array(
[“i5”] = > “v8”
, [“i6”] => array(“v9”,”v10”)
)
)
如何编写以获取v3的结果?
答案 0 :(得分:2)
试试这个
echo $array1["i1"][2];
i1也是一个3值的数组,其中 v3 有2个数字索引