From 69d2467b6ad853ebdbe0115837aa3ec27ce32395 Mon Sep 17 00:00:00 2001 From: irc-html Date: Fri, 18 Jan 2002 15:21:25 +0000 Subject: [PATCH] ereg_replace: see also str_replace (incorporate user note), spelling corrections git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68027 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/regex.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/functions/regex.xml b/functions/regex.xml index 7caab7d039..645b2d346d 100644 --- a/functions/regex.xml +++ b/functions/regex.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (POSIX Extended) Regexps @@ -274,7 +274,8 @@ $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", See also ereg, eregi, - eregi_replace, and preg_match. + eregi_replace, str_replace, + and preg_match. @@ -394,12 +395,12 @@ list($user,$pass,$uid,$gid,$extra)= split (":", $passwd_line, 5); - If there are n occurences of + If there are n occurrences of pattern, the returned array will contain n+1 items. For example, if - there is no occurence of pattern, an array with + there is no occurrence of pattern, an array with only one element will be returned. Of course, this is also true if - string is emply. + string is empty.