this code :
$timestamp = time();
$date_time_array = getdate($timestamp);
$hours = $date_time_array['hours'];
$minutes = $date_time_array['minutes'];
$seconds = $date_time_array['seconds'];
$month = $date_time_array['mon'];
$day = $date_time_array['mday'];
$year = $date_time_array['year'];
$timestamp = mktime(day -1);
echo strftime('%A %b',$timestamp);
echo ", ";
echo strftime('%d',$timestamp);
echo's this -> "Thursday Apr, 01"
the code below also echo's -^
$timestamp = time();
$date_time_array = getdate($timestamp);
$hours = $date_time_array['hours'];
$minutes = $date_time_array['minutes'];
$seconds = $date_time_array['seconds'];
$month = $date_time_array['mon'];
$day = $date_time_array['mday'];
$year = $date_time_array['year'];
$timestamp = mktime(day -2); <----- ???
echo strftime('%A %b',$timestamp);
echo ", ";
echo strftime('%d',$timestamp);
would anyone mind showing me how to get the last code to work showing 2 days ago in the same format that the first did?
Even if two days ago was the last day of the previous month.
i.e today it should output "Wednsday Mar,31"
I'd appreciate it alot.