'' ]); } public static function getYear(string $title) { preg_match('/([0-9]+)/', $title, $y); return $y[1] ?? date('Y'); } }