I'm trying to show some data extracted from an API by JSON and I'm having trouble showing one of them (I'm a newbie in PHP). When printing the array in question shows the following:
array(118) {
[0]=>
array(5) {
["id"]=>
int(1280)
["name"]=>
string(18) "Tina Zarpa Fangosa"
["standing"]=>
int(3)
["value"]=>
int(3015)
["max"]=>
int(8400)
}
[1]=>
array(5) {
["id"]=>
int(1281)
["name"]=>
string(18) "Gina Zarpa Fangosa"
["standing"]=>
int(4)
["value"]=>
int(1820)
["max"]=>
int(8400)
}
[2]=>
array(5) {
["id"]=>
int(1282)
["name"]=>
string(16) "Pez Junco Talado"
["standing"]=>
int(3)
["value"]=>
int(1508)
["max"]=>
int(8400)
}
}
What I am trying to do is that when the ID of one of the entries is, for example, 1281, print the "name" string ("Gina Zarpa Muddy", in the example). Let's see if someone can throw me a cable, which should be simple but my head is dull with so much foreach.