php date day and month code example
Example 1: get day from date php
// Prints the day
echo date("l") . "<br>";
Example 2: date time format php
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
// Prints the day
echo date("l") . "<br>";
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm