主页
PHP
PHP preg_match_all() 函数
tryphp_func_regex_preg_match_all
运行 ❯
×
更改方向
保存代码
更改主题
<?php $str = "The rain in SPAIN falls mainly on the plains."; $pattern = "/ain/i"; if(preg_match_all($pattern, $str, $matches)) { print_r($matches); } ?>