php怎么判断字符串中有连续4个的字符
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $str = 'php怎么判断字符串中有连续4个的字符我我我我我';//$str = 'php怎么判断字符串中有连续4个的字符我我我我我sssssssss';if(preg_match("/(.)\\1{3,}/",$str)){ echo '有连续4个的字符';} else { echo '没有连续4个的字符';}?>