static public regexp_replace_callback ( $pattern, $callback, $subject, $limit ) : mixed | ||
$pattern | string Regular expression | |
$callback | callback PHP callback to generate content to replace matches with | |
$subject | string String to apply regular expression to | |
$limit | int Number of replacements to perform, maximum, or -1 for no limit. | |
return | mixed |