preg_match 执行一个正则表达式匹配

int preg_match('正则','$str','$arr'); //$arr 匹配后的内容

//匹配成功返回1,失败返回0

原文地址:https://www.cnblogs.com/xiongwei89/p/2992973.html