How am I able to get the value of the previous year using PHP. Are there any predefined functions for it?
Shortest approach:
$lastYear = (int)date("Y") - 1;