|
I need a function that takes a string as XML input and change that into an array. Example:
So I can read it in PHP like this:
Note: I tried all xml2array functions in PHP's documentation on xml_parse, and they all didn't work or had problems. |
|
Try this one. Gives same problems as I had before: Notice: Array to string conversion in /srv/www/htdocs/xml2.php on line 102 Fatal error: Cannot use string offset as an array in /srv/www/htdocs/xml2.php on line 107 After parsing a few XML documents that error pops up. Sorry, don't know PHP. ... but the error is Googleable. Try this: http://informationideas.com/news/2006/06/14/fatal-error-cannot-use-string-offset-as-an-array-in/ |
