Automatic copyright date using PHP

If you like to make your side projects in PHP, you’ll need to add a copyright message in the footer just in case it takes off and you want to establish ownership. Side projects however get quickly out of date because you make them in your spare time and that time is limited, but nobody wants to have to update their site(s) on New Years Day, so to avoid your site looking out of date every year, just use this little bit of PHP to automatically update the year.

&copy; 2016-<?php echo date("Y"); ?>