preg_replace_with_count

function preg_replace_with_count(
  mixed $pattern,
  mixed $replacement,
  mixed $subject,
  int $limit,
  inout ?int $count,
): mixed;

Parameters

  • mixed $pattern
  • mixed $replacement
  • mixed $subject
  • int $limit
  • inout ?int $count

Returns

  • mixed