From a5b709a40573b2863314cde97e47e8a76c33de18 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 11 Aug 2006 17:15:27 +0000 Subject: [PATCH] fix #38267: don't recommend ereg*(), as they are deprecated git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@217986 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/str-ireplace.xml | 3 +-- reference/strings/functions/str-replace.xml | 3 +-- reference/strings/functions/strcasecmp.xml | 4 ++-- reference/strings/functions/strcmp.xml | 4 ++-- reference/strings/functions/strcoll.xml | 4 ++-- reference/strings/functions/stristr.xml | 4 ++-- reference/strings/functions/strnatcasecmp.xml | 4 ++-- reference/strings/functions/strnatcmp.xml | 4 ++-- reference/strings/functions/strncasecmp.xml | 4 ++-- reference/strings/functions/strncmp.xml | 4 ++-- reference/strings/functions/strstr.xml | 4 ++-- reference/strings/functions/substr.xml | 4 ++-- 12 files changed, 22 insertions(+), 24 deletions(-) diff --git a/reference/strings/functions/str-ireplace.xml b/reference/strings/functions/str-ireplace.xml index 82bf2c64c8..9602d4683b 100644 --- a/reference/strings/functions/str-ireplace.xml +++ b/reference/strings/functions/str-ireplace.xml @@ -1,5 +1,5 @@ - + @@ -70,7 +70,6 @@ $bodytag = str_ireplace("%body%", "black", ""); See also: str_replace, - ereg_replace, preg_replace, and strtr. diff --git a/reference/strings/functions/str-replace.xml b/reference/strings/functions/str-replace.xml index 76f8e87900..7804fb7a18 100644 --- a/reference/strings/functions/str-replace.xml +++ b/reference/strings/functions/str-replace.xml @@ -1,5 +1,5 @@ - + @@ -104,7 +104,6 @@ echo $count; // 2 See also str_ireplace, substr_replace, - ereg_replace, preg_replace, and strtr. diff --git a/reference/strings/functions/strcasecmp.xml b/reference/strings/functions/strcasecmp.xml index 763f2bd2ae..1dce7f0aed 100644 --- a/reference/strings/functions/strcasecmp.xml +++ b/reference/strings/functions/strcasecmp.xml @@ -1,5 +1,5 @@ - + @@ -37,7 +37,7 @@ if (strcasecmp($var1, $var2) == 0) { See also - ereg, + preg_match, strcmp, substr, stristr, diff --git a/reference/strings/functions/strcmp.xml b/reference/strings/functions/strcmp.xml index d22de030b5..68b63a26d4 100644 --- a/reference/strings/functions/strcmp.xml +++ b/reference/strings/functions/strcmp.xml @@ -1,5 +1,5 @@ - + @@ -23,7 +23,7 @@ Note that this comparison is case sensitive. - See also ereg, + See also preg_match, strcasecmp, substr, stristr, diff --git a/reference/strings/functions/strcoll.xml b/reference/strings/functions/strcoll.xml index 5138aa8699..240f605bf6 100644 --- a/reference/strings/functions/strcoll.xml +++ b/reference/strings/functions/strcoll.xml @@ -1,5 +1,5 @@ - + @@ -33,7 +33,7 @@ - See also ereg, strcmp, + See also preg_match, strcmp, strcasecmp, substr, stristr, strncasecmp, strncmp, strstr, and diff --git a/reference/strings/functions/stristr.xml b/reference/strings/functions/stristr.xml index e1c034aba1..ac93796100 100644 --- a/reference/strings/functions/stristr.xml +++ b/reference/strings/functions/stristr.xml @@ -1,5 +1,5 @@ - + @@ -80,7 +80,7 @@ strstr, strrchr, substr, and - ereg. + preg_match. diff --git a/reference/strings/functions/strnatcasecmp.xml b/reference/strings/functions/strnatcasecmp.xml index 7abcdbaf3f..b00c447b9d 100644 --- a/reference/strings/functions/strnatcasecmp.xml +++ b/reference/strings/functions/strnatcasecmp.xml @@ -1,5 +1,5 @@ - + @@ -33,7 +33,7 @@ str2, and 0 if they are equal. - See also ereg, + See also preg_match, strcasecmp, substr, stristr, diff --git a/reference/strings/functions/strnatcmp.xml b/reference/strings/functions/strnatcmp.xml index 5bf0d48c64..c37d63a7ca 100644 --- a/reference/strings/functions/strnatcmp.xml +++ b/reference/strings/functions/strnatcmp.xml @@ -1,5 +1,5 @@ - + @@ -76,7 +76,7 @@ Array Note that this comparison is case sensitive. - See also ereg, + See also preg_match, strcasecmp, substr, stristr, strcmp, strncmp, strncasecmp, diff --git a/reference/strings/functions/strncasecmp.xml b/reference/strings/functions/strncasecmp.xml index db5b2cc59b..e5001f5e77 100644 --- a/reference/strings/functions/strncasecmp.xml +++ b/reference/strings/functions/strncasecmp.xml @@ -1,5 +1,5 @@ - + @@ -29,7 +29,7 @@ equal. - See also ereg, + See also preg_match, strcasecmp, strcmp, substr, diff --git a/reference/strings/functions/strncmp.xml b/reference/strings/functions/strncmp.xml index dd98dfda37..9b9b796d43 100644 --- a/reference/strings/functions/strncmp.xml +++ b/reference/strings/functions/strncmp.xml @@ -1,5 +1,5 @@ - + @@ -32,7 +32,7 @@ Note that this comparison is case sensitive. - See also ereg, + See also preg_match, strncasecmp, strcasecmp, substr, stristr, strcmp, and diff --git a/reference/strings/functions/strstr.xml b/reference/strings/functions/strstr.xml index 46088724c4..daad3fa0cb 100644 --- a/reference/strings/functions/strstr.xml +++ b/reference/strings/functions/strstr.xml @@ -1,5 +1,5 @@ - + @@ -58,7 +58,7 @@ echo $domain; // prints @example.com strstr has been binary safe since PHP 4.3.0 - See also ereg, preg_match, + See also preg_match, stristr, strpos, strrchr, and substr. diff --git a/reference/strings/functions/substr.xml b/reference/strings/functions/substr.xml index 5a451738ae..e669553476 100644 --- a/reference/strings/functions/substr.xml +++ b/reference/strings/functions/substr.xml @@ -1,5 +1,5 @@ - + @@ -99,7 +99,7 @@ $rest = substr("abcdef", -3, -1); // returns "de" See also strrchr, substr_replace, - ereg, + preg_match, trim, mb_substr and wordwrap.