Guest User

Untitled

a guest
May 18th, 2016
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <?php
  2.    
  3.     $xml= "<note>
  4.    <to>Tove</to>
  5.    <from>Jani</from>
  6.    <heading>Reminder</heading>
  7.    <body>Don't forget me this weekend!</body>
  8.    </note>";
  9.    
  10.     $xml = simplexml_load_string($xml);
  11.    
  12.     var_dump($xml->children());
  13.    
  14.     foreach ($xml->children() as $note){
  15.         echo 1111;
  16.         var_dump($note);
  17.     }
RAW Paste Data