The three parameters are identical to the ones you'd pass
preg_replace.
public static replaceButProtectCodeBlocks ( mixed $Search, mixed $Replace, mixed $Subject, boolean $IsCallback = false ) : string | ||
$Search | mixed | The value being searched for, just like in preg_replace or preg_replace_callback. |
$Replace | mixed | The replacement value, just like in preg_replace or preg_replace_callback. |
$Subject | mixed | The string being searched. |
$IsCallback | boolean | If true, do preg_replace_callback. Do preg_replace otherwise. |
return | string |