1、新建一个php文件,命名为test.php,用于讲解php如何只获得当前时间的时分秒 。
3、在test.php文件中,使用time函数获得当时时间的时间戳。
5、在test.php文件中,使用echo输出时分秒。