Added php function to automatically get the year