[Solved] Create three function to call Today, Yester and Future in PHP [closed]


You can use these function :

// midnight second or equal today
    function isToday($time) 
    {
        return (strtotime($time) === strtotime('today'));
    }

    //Yesterday

    function isPast($time)
    {
        return (strtotime($time) < time());
    }

    // Next day
    function isFuture($time)
    {
        return (strtotime($time) > time());
    }

2

solved Create three function to call Today, Yester and Future in PHP [closed]