So I've got the following output;
Array
(
[0] => Array
(
[PlayerID] => 0
[Nickname] => Alban_Berisha
[Score] => 420
[Ping] => 96
)
[1] => Array
(
[PlayerID] => 1
[Nickname] => Flaviano_Villegas
[Score] => 122
[Ping] => 95
)
[2] => Array
(
[PlayerID] => 2
[Nickname] => Tyrone_DeRozan
[Score] => 0
[Ping] => 120
)
[3] => Array
(
[PlayerID] => 3
[Nickname] => Tage_Thomas
[Score] => 3
[Ping] => 246
)
[4] => Array
(
[PlayerID] => 4
[Nickname] => Jamal_Williams
[Score] => 149
[Ping] => 149
)
)
I want a list containing every PlayerID coupled with the Nickname, but I keep getting various errors. What is the correct way of doing this? I have worked with arrays before but I cannot seem to extract the data from it without getting an error
One of the ways I've tried to do this;
for(new $x=0; $x<5; $x++)
{
echo (var_dump($array[$x]["PlayerID"])." ".var_dump($array[$x]["Nickname"]));
}