How to get current Year in PHP

To get current Year in PHP you can simply use the following method.

Sample PHP

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

Please Share us:
Please rate this snippet

5 thoughts on “How to get current Year in PHP

Leave a Reply