How to get Year Name from date in PHP?
Hi Guys,
In this example,I will learn you how to get year name from date using php.you can easy and simply get year name from date using php.
The year number can be converted into a year name by using php.this tutorial will give you example get year name from date using php.
Example:
<?php
echo date('Y', strtotime('2016-05-17'));
?>
Output:
2016
It will help you...
- How To Use Php Conditional Statement Example
- How to Check if String Contains Regex in PHP?
- PHP Array_column() Function Example
- PHP Generate List of Random Numbers Between 0 and 100 Example
- How to User Login with Facebook in PHP?
- How to Explode Every Character into Array Using PHP Example?
- PHP Form Validation Tutorial
- PHP Convert XML to JSON Example