Function
preg_replace_callback
Synopsis
preg_replace_callback(mixed, mixed, mixed, mixed ...): mixed
- Area
Runtime\PS\Compat\preg_replace_callbackareas
Description
preg_replace_callback replaces every match of $pattern in $subject with what $callback returns for it, calling $callback once per match in document order with the match array, at most $limit times, and reporting the number of replacements through $count.
Usage
$value = preg_replace_callback($arguments);
$fn = preg_replace_callback(...);