From 08dfef9a692a6aa0585fd3d5ff363d5099adc320 Mon Sep 17 00:00:00 2001 From: jim winstead Date: Fri, 7 Dec 2001 21:53:39 +0000 Subject: [PATCH] ereg: fix incorrect documentation of what the first element of the matches array contains git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64251 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/regex.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/regex.xml b/functions/regex.xml index a4cf604c2a..505f90f907 100644 --- a/functions/regex.xml +++ b/functions/regex.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (POSIX Extended) Regexps @@ -127,7 +127,7 @@ $string = ereg_replace ("\n", "", $string); regs. $regs[1] will contain the substring which starts at the first left parenthesis; $regs[2] will contain the substring starting at the second, and so on. $regs[0] will - contain a copy of string. + contain a copy of the complete string matched. If ereg finds any matches at all, $regs will