I am tackling my first non-trivial OOP project with PHP. I am dynamically creating 1300+ objects from a MySQL database. As each object is created, it is added to an array so I can use a loop to reference it dynamically and change its properties later. If I put the object $Buffalo_Bob into $puppetMaster[0], for instance, then ...
[CODE]$town = $Buffalo_Bob->getHomeTown();[/CODE]
should be the equivalent of ...
[CODE]$town = $puppetMaster[0]->getHomeTown();
[/CODE]
I'm getting into problems with a line like the one below where I'm using the object $teamHelper to access the object inside $teamList[$i] to get the object's name from getTeamName().
[CODE]$teamHelper->teamList[$i]->getTeamName()[/CODE]
I know there's something amiss here, but I'm not sure the correct way to tackle this.