To Obtain A Number Corresponding To The Day Of The Week, Use Getdate() Instead:

 
<?php
 
    $ts = strtotime('04 Jul 2007');
 
    $gd = getdate($ts);
 
    $day = $gd["wday"];
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.