From f6630a88f50780c204298a3b8b0d1dfe49abeb39 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Sat, 15 Nov 2003 16:47:22 +0000 Subject: [PATCH] constants <> consonants needles is not a parameter git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144418 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/str-replace.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/strings/functions/str-replace.xml b/reference/strings/functions/str-replace.xml index 2e15d36506..9ff07c4953 100644 --- a/reference/strings/functions/str-replace.xml +++ b/reference/strings/functions/str-replace.xml @@ -1,5 +1,5 @@ - + @@ -71,7 +71,7 @@ $bodytag = str_replace("%body%", "black", ""); // Provides: Hll Wrld f PHP $vowels = array("a", "e", "i", "o", "u", "A", "E", "I", "O", "U"); -$onlyconstants = str_replace($vowels, "", "Hello World of PHP"); +$onlyconsonants = str_replace($vowels, "", "Hello World of PHP"); // Provides: You should eat pizza, beer, and ice cream every day $phrase = "You should eat fruits, vegetables, and fiber every day."; @@ -94,7 +94,7 @@ echo $count; // 2 As of PHP 5.0.0 the number of matched and replaced - needles will be returned in + needles (search) will be returned in count which is passed by reference. Prior to PHP 5.0.0 this parameter is not available.