note 73236 added to function.str-replace
| From: | juliatpoblenoudotcom at osu1 dot php dot net | Date: | Wed, 14 Feb 2007 10:56:38 +0000 |
| Subject: | note 73236 added to function.str-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123364@lists.php.net to get a copy of this message | ||
The function works with arrays (as stated) provided those are unidimensional arrays.
In case you use multidimensional arrays, it won't replace anything, at least in PHP 4.4. If you
need to work with multidimensional arrays, you should iterate (using foreach) over every
unidimensional array.
----
Server IP: 130.206.1.5
Probable Submitter: 62.57.176.10
----
Manual Page -- http://www.php.net/manual/en/function.str-replace.php
Edit -- https://master.php.net/note/edit/73236
Del: integrated -- https://master.php.net/note/delete/73236/integrated
Del: useless -- https://master.php.net/note/delete/73236/useless
Del: bad code -- https://master.php.net/note/delete/73236/bad+code
Del: spam -- https://master.php.net/note/delete/73236/spam
Del: non-english -- https://master.php.net/note/delete/73236/non-english
Del: in docs -- https://master.php.net/note/delete/73236/in+docs
Del: other reasons-- https://master.php.net/note/delete/73236
Reject -- https://master.php.net/note/reject/73236
Search -- https://master.php.net/manage/user-notes.php