Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $infoCNT = file_get_contents ($url);
- $infoCNT = preg_replace_callback ('/<!\[CDATA\[(.*)\]\]>/', create_function ('$_matches', 'return (string) trim (htmlspecialchars ($_matches[1]));'), $infoCNT);
- print "<pre>";
- var_dump ($infoCNT);
- print "</pre>";
- $infoXML = simplexml_load_string ($infoCNT);
- print_rEx ($infoXML);
- function print_rEx ($_array)
- {
- print "<pre>";
- print_r ($_array);
- print "</pre>";
- }
Advertisement
Add Comment
Please, Sign In to add comment