sports_bench_stat_exists( $player, $stat )

Type

Functions

Section

Stats

Takes a player’s set of stats and checks to see if a specific stat exists.

Parameters

  • $player, array, required, array of season stats for a player
  • $stat, integer, required, the stat slug to look for

Returns

  • boolean, whether the stat exists or not

Since: 1.0

Source: baseball-player-info.php, line 53; football-player-info.php, line 27; hockey-player-info.php, line 44; soccer-player-info.php, line 45