Created
December 23, 2013 06:02
-
-
Save mcraz/8092317 to your computer and use it in GitHub Desktop.
Get XML from URL (CDATA as Text)
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
public function getXML($uri = NULL) | |
{ | |
$xml = simplexml_load_file($uri, "SimpleXMLElement", LIBXML_NOCDATA); | |
return $xml; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment