diff options
-rw-r--r-- | it.class | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -369,11 +369,14 @@ static function match($pattern, $string, $p = null) return $result; } + /** * Replace parts of a string matched by a pattern with according replacement string. See convertregex for named parameters. - * @param $replacementes Array with patterns as keys and replacement strings as values. - * @param $string String to change. - * @return New string. + * @param $replacementes Array with patterns as keys and replacement strings as values + * @param $string String to change + * @param $p['limit'] limit number of replacements (default: all) + * @return New string + * @see convertregex for more options in $p */ static function replace($replacements, $string, $p = array()) { |