mateobus
08-08-2006, 05:39 PM
Ok I have teams in arrays and i want to sort them to make a leaderboard. Here are the array values:
$team['name'][index]
$team['conference_points'][index]
$team['goal_differential'][index]
$team['goals_for'][index]
$team['goals_against'][index]
$team['name'][index]
The rules for rankings are as follows. Team with most points is first. If points are the same, the tiebreaker is whoever has the greatest goal differential. If goal diff is the same, its team with the most goals for. How could I do this with PHP? Thanks for all the help.
$team['name'][index]
$team['conference_points'][index]
$team['goal_differential'][index]
$team['goals_for'][index]
$team['goals_against'][index]
$team['name'][index]
The rules for rankings are as follows. Team with most points is first. If points are the same, the tiebreaker is whoever has the greatest goal differential. If goal diff is the same, its team with the most goals for. How could I do this with PHP? Thanks for all the help.