note 66849 added to function.str-replace
| From: | ric at osu1 dot php dot net | Date: | Wed, 31 May 2006 02:29:20 +0000 |
| Subject: | note 66849 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-112580@lists.php.net to get a copy of this message | ||
Needing to change a large number of pages using str_replace() found that;
<?php
str_replace( "<? ", "<?php ", $target );
?>
. . . uses the '?' as a wildcard - while very useful otherwise, but cannot find a fix for
this particular requirement.
----
Server IP: 66.163.161.117
Probable Submitter: 62.255.32.10 (proxied: 82.5.234.171)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- http://master.php.net/note/edit/66849
Del: integrated -- http://master.php.net/note/delete/66849/integrated
Del: useless -- http://master.php.net/note/delete/66849/useless
Del: bad code -- http://master.php.net/note/delete/66849/bad+code
Del: spam -- http://master.php.net/note/delete/66849/spam
Del: non-english -- http://master.php.net/note/delete/66849/non-english
Del: in docs -- http://master.php.net/note/delete/66849/in+docs
Del: other reasons-- http://master.php.net/note/delete/66849
Reject -- http://master.php.net/note/reject/66849
Search -- http://master.php.net/manage/user-notes.php