preg_replace_callback

最后更新于:2022-04-02 02:29:34

[TOC] ## preg_replace_callback 把替换的匹配的值并接d ``` $res = preg_replace_callback("/(ab)c/",static function($match){ return $match[1]."d"; },"abc abc abc"); print_r($res); // abd abd abd ```
';