标签归档:香港vps中的php如何判断字符串中有大写字母

香港vps中的php如何判断字符串中有大写字母

已关闭留言

在香港服务器的php中使用preg_match()函数判断字符串是否有大写字母,具体方法如下: preg_match()函数作用: php中preg_match()函数的作用是使用正则表达式匹配字符串中的值。 preg_match()函数语法: int preg_match(string,$pattern) 参数: string:需要判断的字符串。 $pattern:判断条件。 preg_matc […]