Guest User

Untitled

a guest
Jul 29th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. $infoCNT = file_get_contents ($url);
  2.  
  3. $infoCNT = preg_replace_callback ('/<!\[CDATA\[(.*)\]\]>/', create_function ('$_matches', 'return (string) trim (htmlspecialchars ($_matches[1]));'), $infoCNT);
  4. print "<pre>";
  5. var_dump ($infoCNT);
  6. print "</pre>";
  7. $infoXML = simplexml_load_string ($infoCNT);
  8.  
  9. print_rEx ($infoXML);
  10.  
  11. function print_rEx ($_array)
  12. {
  13.     print "<pre>";
  14.     print_r ($_array);
  15.     print "</pre>";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment