mirror of
https://github.com/php/php-src.git
synced 2025-01-10 04:54:47 +08:00
44 lines
906 B
PHP
44 lines
906 B
PHP
--TEST--
|
|
SimpleXML: Simple document
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$sxe = simplexml_load_file(dirname(__FILE__).'/sxe.xml');
|
|
|
|
print_r($sxe);
|
|
|
|
echo "---Done---\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
simplexml_element Object
|
|
(
|
|
[elem1] => simplexml_element Object
|
|
(
|
|
[comment] => simplexml_element Object
|
|
(
|
|
)
|
|
|
|
[elem2] => simplexml_element Object
|
|
(
|
|
[elem3] => simplexml_element Object
|
|
(
|
|
[elem4] => simplexml_element Object
|
|
(
|
|
[test] => simplexml_element Object
|
|
(
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
---Done---
|