How do I access data in an object array like this? In a foreach loop.
[name:SteamPlayer:private] => Pingu Gaige
Full array here: http://paste.laravel.com/Xic
I have:
foreach($players as $player){
echo $player.. now I'm lost.
}
You're referring to Steam Condenser's SteamPlayer
class here. (Full code on GitHub)
foreach($players as $key => value){
echo "{$value->getName()} has a score of {$value->getScore()}\n";
}