1、新建一个php文件,命名为test.php,用于讲解php怎么获取今天零点的时间戳。
3、在test.php文件中,通过date函数获得当前时间的日期。
5、在test.php文件中,使用echo输出时间戳。