Skip to content

Instantly share code, notes, and snippets.

@jimbojsb
Created May 10, 2013 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimbojsb/5551751 to your computer and use it in GitHub Desktop.
Save jimbojsb/5551751 to your computer and use it in GitHub Desktop.
Hack way to get XML into a corresponding PHP array
<?php
$array = json_decode(json_encode(simplexml_load_string($str)), true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment