[php] How do I use PHP to get the current year?

Print current month with M, day with D and year with Y.

<?php echo date("M D Y"); ?>

Examples related to php

I am receiving warning in Facebook Application using PHP SDK Pass PDO prepared statement to variables Parse error: syntax error, unexpected [ Preg_match backtrack error Removing "http://" from a string How do I hide the PHP explode delimiter from submitted form results? Problems with installation of Google App Engine SDK for php in OS X Laravel 4 with Sentry 2 add user to a group on Registration php & mysql query not echoing in html with tags? How do I show a message in the foreach loop?

Examples related to date

How do I format {{$timestamp}} as MM/DD/YYYY in Postman? iOS Swift - Get the Current Local Time and Date Timestamp Typescript Date Type? how to convert current date to YYYY-MM-DD format with angular 2 SQL Server date format yyyymmdd Date to milliseconds and back to date in Swift Check if date is a valid one change the date format in laravel view page Moment js get first and last day of current month How can I convert a date into an integer?

Examples related to php-5.3

How to fix error with xml2-config not found when installing PHP from sources? curl posting with header application/x-www-form-urlencoded PHP Composer behind http proxy How do I use PHP to get the current year?

Examples related to php-5.4

Set port for php artisan.php serve How do I use PHP to get the current year?

Examples related to php4

Generate preview image from Video file? How do I use PHP to get the current year?