mirror of
https://github.com/php/php-src.git
synced 2026-04-26 01:18:19 +02:00
MFH: move constants to class
This commit is contained in:
@@ -13,11 +13,11 @@ $xmlstring = '<books>
|
||||
$reader = new XMLReader();
|
||||
$reader->XML($xmlstring);
|
||||
while ($reader->read()) {
|
||||
if ($reader->nodeType != XMLREADER_END_ELEMENT) {
|
||||
if ($reader->nodeType != XMLREADER::END_ELEMENT) {
|
||||
print "Node Name: ".$reader->name."\n";
|
||||
print "Node Value: ".$reader->value."\n";
|
||||
print "Node Depth: ".$reader->depth."\n";
|
||||
if ($reader->nodeType==XMLREADER_ELEMENT && $reader->hasAttributes) {
|
||||
if ($reader->nodeType==XMLREADER::ELEMENT && $reader->hasAttributes) {
|
||||
$attr = $reader->moveToFirstAttribute();
|
||||
while ($attr) {
|
||||
print " Attribute Name: ".$reader->name."\n";
|
||||
|
||||
Reference in New Issue
Block a user