News Feed
Jobs Feed
Sections




News Archive
MSBWare.com:
XML to Array
April 14, 2008 @ 10:23:11

Michael has posted a simple script today that takes in XML data and spits back out an array on the other side:

The function takes the specified XML data (which must be in valid XML format) and converts into an array. Any attributes in the XML elements are dropped an only the element values are placed in the array.

The code uses a combination of XPath, DOM, and regular expressions to parse the given XML content.

0 comments voice your opinion now!
xml translate array xpath dom regularexpression data element


blog comments powered by Disqus

Similar Posts

DevGuide.net: Dynamic Bitmap Graphics with PHP and GD

DevShed: A Quick Overview of the XML DOM Extension in PHP 5

O'Reilly: Code As Data: Reflection in PHP

Stuart Herbert's Blog: Learning PHP Data Objects, by Dennis Popel

PHPied.com: The PEAR book is on it's way


Community Events











Don't see your event here?
Let us know!


zendframework2 example release phpunit introduction tool object unittest series functional opinion community interview testing composer language framework code development podcast

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework