如何在PHP中显示时间和日期 [英] how to display time and date in Php
本文介绍了如何在PHP中显示时间和日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我只是想知道如何在PHP的同一行上显示时间,日期和月份,例如8h10,然后播放几秒钟然后显示月份
例如:2010年3月3日8小时10分60秒
感谢您的提前帮助.
hello everybody , i just wanted to know how to display time , Date , and month on the same row in PHP for example 8h10with some seconds playing then the month
e.g: March 3/8/2010 8h10min 60sec
Thanks for your help in advance
推荐答案
echo date("l, F d, Y h:i" ,time());
在Google的大约2秒内找到;
http://www.totallyphp.co.uk/code/display_date_and_time_with_php.htm [ ^ ]
Found in about 2 seconds with Google;
http://www.totallyphp.co.uk/code/display_date_and_time_with_php.htm[^]
这篇关于如何在PHP中显示时间和日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文