小编kas*_*nov的帖子

如何在PHP中检查字符串的日期格式?

我想检查字符串是否具有此时间格式:

Y-m-d H:i:s
Run Code Online (Sandbox Code Playgroud)

如果不是做一些代码,例如

if here will be condition do { this }
else do { this }
Run Code Online (Sandbox Code Playgroud)

如何在PHP中执行此条件?

php regex preg-match

9
推荐指数
4
解决办法
3万
查看次数

标签 统计

php ×1

preg-match ×1

regex ×1