Previous Page
locale()

Solar_Filter_SanitizePregReplace
sanitizePregReplace()

Next Class
Solar_Filter_SanitizeStrReplace

sanitizePregReplace()

public string 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.