,<?php
$array = array(
"foo" => "bar",
42 => 24,
"multi" =>
array(
"dimensional" => array(
"array" => "foo"
)
));
echo $array['multi']['dimensional']['array']; //foo
?>
Other example
$i=1;
$pos=array();
$pos[$i]=["familyId"=>"12","familylocalName"=>"Ambiorix"];
//$pos[1] is an array so you can access direct to is key value $pos[1]['familyId'];
echo $pos[1]['familyId'];
///
No hay comentarios:
Publicar un comentario