sports_bench_get_game_stat( $game, $home_away, $stat )

Type

Filters

Section

Game Recap

Returns a team stat from a game.

Parameters

  • $game, Sports Bench Game Object, required, the game object for the game
  • $home_away, string, required, whether the team stat is for the home or away team
  • $stat, string, required, the stat to grab

Returns

  • int, team stat from a game

Since: 1.0

Source: baseball-game-info.php, line 97