preg_replace_with_error

function preg_replace_with_error(
  mixed $pattern,
  mixed $replacement,
  mixed $subject,
  inout ?int $error,
  int $limit = -1,
): mixed;

Parameters

  • mixed $pattern
  • mixed $replacement
  • mixed $subject
  • inout ?int $error
  • int $limit = -1

Returns

  • mixed