summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class9
1 files 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())
{