0

Let say if I got a set of array value which is

$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”)
)
)

How do I write to get the result of v3?

Beginner
  • 171
  • 1
  • 13

1 Answers1

2

Try this

echo $array1["i1"][2];

i1 is also an array with 3 value where v3 have 2 number index

Mithu CN
  • 605
  • 5
  • 11