浏览代码

doc update

euromark 12 年之前
父节点
当前提交
b257b8cb51
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Lib/Utility/Utility.php

+ 8 - 0
Lib/Utility/Utility.php

@@ -30,6 +30,10 @@ class Utility {
 	 * Multibyte analogue of preg_match_all() function.
 	 * By default this works properly with UTF8 strings.
 	 *
+	 * Note that you still need to add the u modifier (for UTF8) to your pattern yourself.
+	 *
+	 * Example: /some(.*)pattern/u
+	 *
 	 * @param string $pattern The pattern to use.
 	 * @param string $subject The string to match.
 	 * @param array $matches Array of all matches in multi-dimensional array ordered according to flags.
@@ -46,6 +50,10 @@ class Utility {
 	 * Multibyte analogue of preg_match() function.
 	 * By default this works properly with UTF8 strings.
 	 *
+	 * Note that you still need to add the u modifier (for UTF8) to your pattern yourself.
+	 *
+	 * Example: /some(.*)pattern/u
+	 *
 	 * @param string $pattern The pattern to use.
 	 * @param string $subject The string to match.
 	 * @param array $matches Array of all matches in multi-dimensional array ordered according to flags.