Browse Source

doc update

euromark 12 years ago
parent
commit
b257b8cb51
1 changed files with 8 additions and 0 deletions
  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.
 	 * Multibyte analogue of preg_match_all() function.
 	 * By default this works properly with UTF8 strings.
 	 * 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 $pattern The pattern to use.
 	 * @param string $subject The string to match.
 	 * @param string $subject The string to match.
 	 * @param array $matches Array of all matches in multi-dimensional array ordered according to flags.
 	 * @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.
 	 * Multibyte analogue of preg_match() function.
 	 * By default this works properly with UTF8 strings.
 	 * 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 $pattern The pattern to use.
 	 * @param string $subject The string to match.
 	 * @param string $subject The string to match.
 	 * @param array $matches Array of all matches in multi-dimensional array ordered according to flags.
 	 * @param array $matches Array of all matches in multi-dimensional array ordered according to flags.