From e2974f041d43b0ce99488027dd38187d606dd552 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Tue, 15 May 2012 13:25:26 +0000 Subject: document limit option of it::replace() --- it.class | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/it.class b/it.class index d2ac013..839e457 100644 --- a/it.class +++ b/it.class @@ -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()) { -- cgit v1.2.3