Created
June 10, 2014 17:08
-
-
Save lorenzoaiello/1a3e81ee2b1e42d8d6c5 to your computer and use it in GitHub Desktop.
Force XML to Array
This file contains hidden or 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
$array = json_decode(json_encode((array) simplexml_load_string($xml_string)),1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment