= strtotime($sea['time1']) && phpcommon\getNowTime() <= strtotime($sea['time2'])) { return $sea; } } return null; } function getNowSeasonNum() { $conf = getSeasonConf(); for ($i = 1; $i <= count($conf); $i++) { $sea = getSeasonById($i); if (phpcommon\getNowTime() >= strtotime($sea['time1']) && phpcommon\getNowTime() <= strtotime($sea['time2'])) { return $i; } } return null; }