How can the current year be displayed in PHP?

To display the current year in PHP, you can use the `date()` function with the 'Y' format specifier, which represents the year in a four-digit format. This function will return the current year based on the server's time settings. You can then echo or store this value to display the current year in your PHP application.

$currentYear = date('Y');
echo $currentYear;