Home > Backend Development > PHP Tutorial > php如何用正则表达式判断连接和时间是否合法。

php如何用正则表达式判断连接和时间是否合法。

WBOY
Release: 2016-06-23 14:21:44
Original
887 people have browsed it

时间只显示年月日,时间格式为2008-08-08
连接地址的话,要考虑http,https这两种情况吧,或者你有更全的更好。


回复讨论(解决方案)

这里也看到你的帖子

echo date('Y-m-d H:i:s',strtotime($time));

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template