Solar_Filter_SanitizePregReplace::sanitizePregReplace()
public
string
Solar_Filter_SanitizePregReplace::sanitizePregReplace
( mixed $value
, string $pattern
, string $replace
)
Applies » preg_replace() to the value.
Parameters
(mixed)
$value
: The value to be sanitized.(string)
$pattern
: The regex pattern to apply.(string)
$replace
: Replace the found pattern with this string.
Returns
(string) The sanitized value.
Description
Applies » preg_replace() to the value.