How to get Day Name from date in PHP?

PHP

Nicesnippets

224

04-01-2021


Hi Guys,

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

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

Example:


<?php

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

?>

Output:

Tue

It will help you...