PHP中的NOW()函数 [英] NOW() function in PHP
本文介绍了PHP中的NOW()函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
NOW()
? 我知道如何使用 date()
,但我问是否只有一个功能这个。
例如返回:
2009-12-01 00 :00:00
解决方案
> date(Ymd H:i:s)
Is there a PHP function that returns the date & time in the same format as the MySQL function NOW()
?
I know how to do it using date()
, but I am asking if there is a function only for this.
For example to return:
2009-12-01 00:00:00
解决方案
Not besides date("Y-m-d H:i:s")
这篇关于PHP中的NOW()函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文