preg_replace_callback_arrayPerform a regular expression search and replace using callbacks Description
stringarraynull preg_replace_callback_array(
array $pattern ,stringarray $subject ,int $limit = -1,int &$count = null ,int $flags = 0) The behavior of this function is similar to preg_replace_callback, except that callbacks are executed on a per-pattern basis. Parameters
Return Values
preg_replace_callback_array returns an array if the
If matches are found, the new subject will be returned, otherwise
Errors/Exceptions
If the regex pattern passed does not compile to a valid regex, an Changelog
Examples
Example #1 preg_replace_callback_array example
The above example will output: 6 matches for "a" found 3 matches for "b" found See Also
|