Codex

sports_bench_get_ERA

Returns the ERA for a player.

Parameters

  • int $earned_runs — The number of earned runs given up.
  • float $innings_pitched — The number of innings pitched.
  • int $innings_per_game — The number of innings per game.

Returns

  • float|string — The ERA for the player.

Since: 2.0

Source

  • /includes/functions/players.php — 42