Codex

BasketballPlayer::get_points_average

Gets the points per game average for a player.

Parameters

  • int $points — The number of points scored.
  • int $games — The number of games played.

Returns

  • float — The points per game for the player.

Since: 2.0

Source

  • /includes/classes/sports/basketball/basketball-player.php — 53