What's wrong about this code?
($matches is a 2 dimensional array)
for($i = 0; $i < count($matches); $i++)
echo $matches[$i]->getName_team_home()."<br />";
It's not the actual code, it's just an example, originally it has to put the names of a team playing home in a table.
It only shows the first team, it doesn't seem like it goes any further than $i=0...