fork(1) download
  1. <?php
  2. $note=<<<xml
  3. <note>
  4. <nome>xiro</nome>
  5. </note>
  6. xml;
  7.  
  8.  
  9.  
  10. echo $xml->getName() . "<br>";
  11.  
  12. foreach($xml->children() as $child) {
  13. echo $child->getName() . ": " . $child . "<br>";
  14. }
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
note<br>nome: xiro<br>