I have an array like this, made of arrays with pairs of ids and names:
$myarray
: array =
0: array =
53: string = Robert
1: array =
28: string = Carl
2: array =
32: string = Anna
3: array =
84: string = Mary
4: array =
59: string = Daniel
At certain point of my php script I'll get an id, and from this id I will need the name.
I know that with an unidimensional array is a simple as $myarray[$id] but with the one above, how can I do it??
Thanks a lot!!
$idlook like? In a multi-array, you just use more[]. Like:$myarray[0][53]would be"Robert".