"Fossies" - the Fresh Open Source Software Archive

Member "hhvm-HHVM-4.166.0/hphp/test/zend/good/ext/xmlreader/tests/001.php" (8 Aug 2022, 282 Bytes) of package /linux/www/hhvm-HHVM-4.166.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?hh
    2 /* $Id$ */
    3 <<__EntryPoint>> function main(): void {
    4 $xmlstring = '<?xml version="1.0" encoding="UTF-8"?>
    5 <books></books>';
    6 
    7 $reader = new XMLReader();
    8 $reader->XML($xmlstring);
    9 
   10 // Only go through
   11 while ($reader->read()) {
   12     echo $reader->name."\n";
   13 }
   14 echo "===DONE===\n";
   15 }