constants <> consonants

needles is not a parameter


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144418 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2003-11-15 16:47:22 +00:00
parent 86e6b1a52e
commit f6630a88f5

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry id="function.str-replace">
<refnamediv>
@ -71,7 +71,7 @@ $bodytag = str_replace("%body%", "black", "<body text='%body%'>");
// 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
<note>
<simpara>
As of <literal>PHP 5.0.0</literal> the number of matched and replaced
<parameter>needles</parameter> will be returned in
needles (<parameter>search</parameter>) will be returned in
<parameter>count</parameter> which is passed by reference.
Prior to <literal>PHP 5.0.0</literal> this parameter is not available.
</simpara>