主页
PHP
PHP preg_match_all() 函数
tryphp_func_regex_preg_match_all2
运行 ❯
×
更改方向
保存代码
更改主题
<?php $str = "abc ABC"; $pattern = "/((a)b)(c)/i"; if(preg_match_all($pattern, $str, $matches, PREG_PATTERN_ORDER)) { print_r($matches); } ?>