preg_match_all — Perform a global regular expression match
Description[dɪˈskrɪpʃən]
描述,说明
intpreg_match_all(string,string[,array[,int=[,int= 0]]] )
Perform a global regular expression match
执行一个全局正则表达式匹配
1、perform
常用意思是表演,这里是“执行”的意思,IT行业一般都是执行什么命令等。
2、global regular expression
//全局正则表达式
3、match
常用意思有“比赛”,比如:
a football match//一场足球比赛
在我们IT行业基本上都是“匹配”的意思,最常用到地方就是匹配正则表达式
Searchessubjectfor all matches to the regular expression given inpatternand puts them inmatchesin the order specified byflags.
搜索subject中所有匹配pattern给定正则表达式 的匹配结果并且将它们以flag指定顺序输出到matches中.
1、match to
本意是把....和....相搭配,在IT行业,只有后面跟了 regular expression,看到 match 就是匹配的意思
2、put sth in sth
//把.....放入.....里面
3、in the order
//按顺序
4、specified
//指定,详细说明,是 specify 的过去分词
Array of all matches in multi-dimensional array ordered according toflags.
多维数组,作为输出参数输出所有匹配结果, 数组排序通过flags指定
multi-dimensional array//多维数组
one-dimensional array//一维数组
领取专属 10元无门槛券
私享最新 技术干货