【发布时间】:2015-03-11 05:24:10
【问题描述】:
如果一个字符串包含 4 个数字加上一个空格,然后是文本,我想检查 php。
类似这样的:1234 asdf
If there are more or less then 4 numbers => false
If there is no text after the numbers => false
我怎样才能以正确的方式做到这一点?
【问题讨论】:
-
你能以 any 的方式做到这一点吗?作为一个新手,你应该学习如何实现一些可行的东西,而不是看起来不错的东西。
标签: php string if-statement