Hi,
In the documentation it says that str_replace() accepts an array as its subject. I
have been trying to use it with a multidimensional array, but
keep on getting the following error:
Notice: Array to string conversion in c:\code\xml\index.php on line 85
And my arrays are flattened :-(
$foo = array(
'0' => array('foo => 'bar'),
'1' => array('fff' => 'foooo',
'feen' => 'foo')
);
Returns an array like
Array ( [0] => Array [1] => ) when printed out.
Is the documentation wrong or is PHP 4.2.1 broken?
Thanks
Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php