How to get Day Name from date in PHP?

Admin   PHP   127  2021-03-18 04:50:06

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...