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.