I got this problem. I am trying to get certain objects within an array from an object.
I made this function where I ask a single match to display.
function match () {
$Match = WaterpoloAPI::call("Matches", "getMatch", Array($_GET["MatchId"]));
echo "<td>$Match->Date</td> <td>$Match->Time</td> <td>$Match->PoolName</td><td class='text-center'>$Match->HomeTeam </td><td><strong><a href='wedstrijd?MatchId=".$Match->Id."'>$Match->ResultHome - $Match->ResultGuest </a></strong></td><td> $Match->AwayTeam</td>";
}
I can choose a list of items from that match to show...
MatchItem
Properties
Name Type
Id string
MatchNumber int
Date string
Time string
DepartmentId string
DepartmentCode string
DepartmentName string
HomeTeamId string
HomeTeam string
AwayTeamId string
AwayTeam string
PoolId string
PoolName string
PoolCity string
MatchReport string
Played boolean
ResultHome int
ResultGuest int
**Referees MatchRefereeItem[]**
but I want to show referees ...but it is in an array...how do I do that?
**MatchRefereeItem
Properties**
Name Type
Id string
Initials string
FirstName string
Insertion string
LastName string
Sex string
Indication int
I am still learning and maybe it's a silly question, therefore I am sorry. but it would be great if someone could help me.