note 103923 added to function.str-ireplace
| From: | me at NOSPAM dot robert-lerner dot com | Date: | Wed, 11 May 2011 13:27:28 +0000 |
| Subject: | note 103923 added to function.str-ireplace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179606@lists.php.net to get a copy of this message | ||
This function is not available in PHP 4 (if for, whatever reason, you're still using that).
Simple workaround:
<?PHP
$var = str_replace(strtoupper("replacethis"),strtoupper("withthis"),$inthis);
?>
Common sense really, but for those who aren't aware of this and using an old PHP version.
----
Server IP: 192.41.42.26
Probable Submitter: 208.68.0.2
----
Manual Page -- http://www.php.net/manual/en/function.str-ireplace.php
Edit -- https://master.php.net/note/edit/103923
Del: integrated -- https://master.php.net/note/delete/103923/integrated
Del: useless -- https://master.php.net/note/delete/103923/useless
Del: bad code -- https://master.php.net/note/delete/103923/bad+code
Del: spam -- https://master.php.net/note/delete/103923/spam
Del: non-english -- https://master.php.net/note/delete/103923/non-english
Del: in docs -- https://master.php.net/note/delete/103923/in+docs
Del: other reasons-- https://master.php.net/note/delete/103923
Reject -- https://master.php.net/note/reject/103923
Search -- https://master.php.net/manage/user-notes.php