Php Get Month Name From Date Example

PHP

Nicesnippets

235

01-01-2021


Hi Guys,

In this example,I will learn you how to get month name from date using php.you can easy and simply get month name from date using php.

The month number can be converted into a month name by using PHP.this tutorial will give you example get month name from date using php.

Example:


<?php

echo date("F", strtotime('2016-05-17 16:41:51'));

?>

Output:

May

It will help you...