diff --git a/reference/pcre/functions/preg-replace.xml b/reference/pcre/functions/preg-replace.xml index eb8c535784..570d1393a6 100644 --- a/reference/pcre/functions/preg-replace.xml +++ b/reference/pcre/functions/preg-replace.xml @@ -1,5 +1,5 @@ - + @@ -79,12 +79,12 @@ The string or an array with strings to replace. If this parameter is a string and the pattern parameter is an array, - all pattens will be replaced by that string. If both + all patterns will be replaced by that string. If both pattern and replacement parameters are arrays, each pattern will be replaced by the replacement counterpart. If - there are less keys in the replacement array - than in the pattern array, the excedent + there are fewer elements in the replacement + array than in the pattern array, any extra patterns will be replaced by an empty string.