From 6154b2afef87921ae50e7b61856c25733664d5b6 Mon Sep 17 00:00:00 2001 From: Egon Schmid Date: Mon, 22 Jan 2001 22:51:51 +0000 Subject: [PATCH] Typos and wrong nesting of elements. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@39997 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/array.xml | 2 -- functions/pcre.xml | 25 +++++++++++++------------ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/functions/array.xml b/functions/array.xml index 40f72f62e9..1ff4a2ae93 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1680,8 +1680,6 @@ while (list ($key, $val) = each ($HTTP_POST_VARS)) { - - EXTR_PREFIX_INVALID diff --git a/functions/pcre.xml b/functions/pcre.xml index f6e50e1d33..291548c22f 100644 --- a/functions/pcre.xml +++ b/functions/pcre.xml @@ -88,11 +88,11 @@ Returns true if a match for pattern was found in the subject string, or false if not match was found - or an error occurred. - + or an error occurred. + - find the string of text "php" + Find the string of text "php" // the "i" after the pattern delimiter indicates a case-insensitive search if (preg_match ("/php/i", "PHP is the web scripting language of choice.")) { @@ -365,7 +365,7 @@ part 3: </a> the line containing preg_replace. - /F modifier means that the + /F modifier means that the replacement is taken to be a function name. This function will be called and passed an array of matched elements in the subject string. The function should return the replacement string. This @@ -703,8 +703,8 @@ $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array); If this modifier is set, preg_replace does normal substitution of backreferences in the replacement string, evaluates it as PHP code, and uses the - result for replacing the search string. This modifier cannot be used along - with /F modifier. + result for replacing the search string. This modifier cannot + be used along with /F modifier. Only preg_replace uses this modifier; @@ -717,15 +717,16 @@ $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array); If this modifier is set, preg_replace - treats the replacement parameter as a function name that should be called - to provide the replacement string. The function is passed an array of - matched elements in the subject string. This modifier cannot be used along - with /e modifier. + treats the replacement parameter as a function name that + should be called to provide the replacement string. The + function is passed an array of matched elements in the + subject string. This modifier cannot be used along with + /e modifier. Only preg_replace uses this modifier; - it is ignored by other PCRE functions. This modifier was added in PHP - 4.0.4. + it is ignored by other PCRE functions. This modifier was + added in PHP 4.0.4.