From dd203bae9d57e718ccacb7b6210073782c32c4d1 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 3 Dec 2003 14:40:56 +0000 Subject: [PATCH] - Clarify the use of "array" here. (Bug #26508) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@145462 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/functions/preg-replace.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/reference/pcre/functions/preg-replace.xml b/reference/pcre/functions/preg-replace.xml index 2ea870c7e9..64c572e83f 100644 --- a/reference/pcre/functions/preg-replace.xml +++ b/reference/pcre/functions/preg-replace.xml @@ -1,5 +1,5 @@ - + @@ -76,12 +76,12 @@ April1,2003 Every parameter to preg_replace (except - limit) can be an array. When using arrays with - pattern and replacement, - the keys are processed in the order they appear in the array. This is - not necessarily the same as the numerical index - order. If you use indexes to identify which - pattern should be replaced by which + limit) can be an unidimensional array. + When using arrays with pattern and + replacement, the keys are processed in the order + they appear in the array. This is not necessarily + the same as the numerical index order. If you use indexes to identify + which pattern should be replaced by which replacement, you should perform a ksort on each array prior to calling preg_replace.