Created
November 4, 2013 19:18
-
-
Save hyperized/7307764 to your computer and use it in GitHub Desktop.
Handy XML to Array shortcut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Source: http://stackoverflow.com/a/18707244 | |
//convert the XML result into array | |
$array_data = json_decode(json_encode(simplexml_load_string($data)), true); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment