note 76289 added to function.str-replace
| From: | tom at appee dot com | Date: | Mon, 09 Jul 2007 17:32:30 +0000 |
| Subject: | note 76289 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128330@lists.php.net to get a copy of this message | ||
Note that the $replace parameter is only evaluated once, so if you have something like:
<?php
$item = 1;
$list = str_replace('<li>', $item++.'. ', $list);
?>
then every "li" tag in the input will be replaced with "1. ".
----
Server IP: 194.145.210.3
Probable Submitter: 91.84.46.45
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- https://master.php.net/note/edit/76289
Del: integrated -- https://master.php.net/note/delete/76289/integrated
Del: useless -- https://master.php.net/note/delete/76289/useless
Del: bad code -- https://master.php.net/note/delete/76289/bad+code
Del: spam -- https://master.php.net/note/delete/76289/spam
Del: non-english -- https://master.php.net/note/delete/76289/non-english
Del: in docs -- https://master.php.net/note/delete/76289/in+docs
Del: other reasons-- https://master.php.net/note/delete/76289
Reject -- https://master.php.net/note/reject/76289
Search -- https://master.php.net/manage/user-notes.php