PHP获取当前日期

版权声明:转载请注明出处http://blog.csdn.net/xuaho0907 https://blog.csdn.net/xuaho0907/article/details/82561647

    date_default_timezone_set('Asia/ShangHai');


    $today = date('m-d',time());//获取当天日期

    $week = date("w");//获取当天星期几

猜你喜欢

转载自blog.csdn.net/xuaho0907/article/details/82561647