Home >Backend Development >PHP Tutorial > 请教怎么比较时间

请教怎么比较时间

WBOY
WBOYOriginal
2016-06-13 12:55:26959browse

请问如何比较时间?

本帖最后由 szivanl 于 2013-01-21 11:59:10 编辑 已有一个时间为12:00:00,我想与当前系统时间对比大小,请问代码应该如何写(注意,只要时间,不要日期)?

------解决方案--------------------
var_dump('12:00:00' > date('H:i:s'));
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn