From 61ab742a0321ba5e0dfcdba52d4fb6ed78b2e23e Mon Sep 17 00:00:00 2001 From: Simone Cortesi Date: Thu, 21 Mar 2002 10:46:27 +0000 Subject: [PATCH] make some look like the others git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@74419 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pcre.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/functions/pcre.xml b/functions/pcre.xml index 96a6c84df4..bb706f1c2b 100644 --- a/functions/pcre.xml +++ b/functions/pcre.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (Perl-Compatible) PCRE @@ -712,13 +712,15 @@ $textbody = preg_replace ("/".preg_quote($word)."/", preg_grep returns the array consisting of the elements of the input array that match - the given pattern. + the given pattern. + Since PHP 4.0.4, the results returned by preg_grep are indexed using the keys from the input array. If this behavior is undesirable, use array_values on the array returned by - preg_grep to reindex the values. + preg_grep to reindex the values. + @@ -912,7 +914,6 @@ $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array); - Pattern Syntax Describes PCRE regex syntax