1、preg_match:matches[0] 是正则表达式匹配到的字符串,matches[1]…一次匹配到的"()"
2、preg_match_all:跟preg_match匹配一次相比,preg_match_all匹配多次
php 正则表达式
最新推荐文章于 2024-06-15 22:04:01 发布
1、preg_match:matches[0] 是正则表达式匹配到的字符串,matches[1]…一次匹配到的"()"
2、preg_match_all:跟preg_match匹配一次相比,preg_match_all匹配多次