if (!preg_match('/0?(00|01|11|13|14|15|17|18)[0-9]{9}/', $tel)) {
<code> } </code>
Why does this regular expression allow mobile phone numbers with more than 11 digits to pass through directly without reporting an error? 00 and 01 11 are customized, just ignore them
The regular expression is not very good. What is wrong? How should I write it?
<code> } </code>
The regular expression is not very good. What is wrong? How should I write it?
<code>preg_match('/^(\+86)?1[34578]\d{9}$/',$phone)</code>