PHP preg_replace() 函數(shù)PHP 正則表達式(PCRE)preg_replace 函數(shù)執(zhí)行一個正則表達式的搜索和替換。語法mixed preg_replace ( mixed $pattern , mixed $replacement , mixed $subject [, int $limit = -1 [, int &$count ]] )搜索subject 中匹配 pattern 的部分, 以 replacement 進行替換。
edu.jb51.net/php/php-ref-preg-repla... 2025-5-20