$date = “07/11/2024 – 07/11/2024″; $parts = explode(” “, $date); $year = substr($parts[0], -4);
return $year;