php判断是否4到11位数字 preg_match('/^\d{4,11}$/', $text)preg_match('/^[\w-]{5,20}$/', $text) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if(preg_match('/^\d{4,11}$/', $text)){write_msg("QQ号格式不正确") }这样搞报错Parse error: syntax error, unexpected T_EMPTY in if(preg_match('/^\d{4,11}$/', $text)){write_msg("QQ号格式不正确"); }这样不行啊 preg_match返回1,匹配到了,是正确的,改为:if(!preg_match('/^\d{4,11}$/', $text)){write_msg("QQ号格式不正确"); } ZendStudio 怎样调试PHP? 两个网站的用户资料能通用如何设定 php程序的网站怎么在顶部调用一个已经单独存在的html页面 求php函数 时间控制 关于对php要目录表示方法的测试结果总结和一些疑问[长] 新手请教:一种(&$VALUE)在C是指针,在PHP是什么呢?? 如何通过SMARTy模板引擎的页面,查看和修改WEB页面呀? PHP中Common::loadModel('UserModel') 是什么意思 请教一个无法连接网站的问题 mysql输出不全 win32_ps_list_procs 怎么用,报undefined 求大神相助,谢谢!!
这样搞报错
Parse error: syntax error, unexpected T_EMPTY in
这样不行啊
if(!preg_match('/^\d{4,11}$/', $text)){write_msg("QQ号格式不正确"); }