note 105015 added to function.str-replace
| From: | trueleader at gmx dot de | Date: | Fri, 22 Jul 2011 10:40:38 +0000 |
| Subject: | note 105015 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181778@lists.php.net to get a copy of this message | ||
@dave dot haefliger at gmail dot com
$count contains only the number of replacements which had been done. You cant specify the number of
replacements to do.
<?php
$count=1;
echo str_replace("a", "b", "", $count).": ".$count; //
Outputs: bb: 2
----
Server IP: 217.160.235.204
Probable Submitter: 217.86.161.106
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- https://master.php.net/note/edit/105015
Del: integrated -- https://master.php.net/note/delete/105015/integrated
Del: useless -- https://master.php.net/note/delete/105015/useless
Del: bad code -- https://master.php.net/note/delete/105015/bad+code
Del: spam -- https://master.php.net/note/delete/105015/spam
Del: non-english -- https://master.php.net/note/delete/105015/non-english
Del: in docs -- https://master.php.net/note/delete/105015/in+docs
Del: other reasons-- https://master.php.net/note/delete/105015
Reject -- https://master.php.net/note/reject/105015
Search -- https://master.php.net/manage/user-notes.php