主页
PHP
PHP preg_match() 函数
tryphp_func_regex_preg_match2
运行 ❯
×
更改方向
保存代码
更改主题
<?php $str = "Welcome to FreeW3C"; $pattern = "/freew3c/i"; preg_match($pattern, $str, $matches, PREG_OFFSET_CAPTURE); print_r($matches); ?>