hiphop-php /hphp/test/slow/xml/print_r.php

Language PHP Lines 16
MD5 Hash e72506ec91dfc7d83670fa3a680ea50a Estimated Cost $260 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<?php

$xml = <<<XML
<root>
  <A>Hello</A>
  <B prop="val">World</B>
</root>
XML;

$doc = new DOMDocument;
$doc->loadXML($xml);
echo "--Document--\n";
print_r($doc);
echo "--Element--\n";
print_r($doc->documentElement);
Back to Top