From 1fcf22de2ca20fa845ffdb49813c682c315407ee Mon Sep 17 00:00:00 2001 From: DHTMLGoodies Date: Sun, 5 Feb 2017 14:24:49 +0100 Subject: [PATCH] before find words routine --- PgnParser.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PgnParser.php b/PgnParser.php index 3dc16fc..4d5a5db 100755 --- a/PgnParser.php +++ b/PgnParser.php @@ -131,6 +131,11 @@ class PgnParser return $this->pgnGames; } + + public function countGames(){ + $games = $this->getUnparsedGames(); + return count($games); + } public function getCleanPgn(){ return $this->cleanPgn($this->pgnContent);