preg_filter
preg_filter
(PHP 5 >= 5.3.0, PHP 7)
preg_filter — Perform a regular expression search and replace
Description
mixed preg_filter ( mixed $pattern , mixed $replacement , mixed $subject [, int $limit = -1 [, int &$count ]] )
preg_filter() is identical to preg_replace() except it only returns the (possibly transformed) subjects where there was a match. For details about how this function works, read the 登录查看完整内容