repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import zend simplexml tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
bad
/
ext-simplexml
/
032.php
blob
3cedc681db1e5a37128eda0f3fbff0827a50debb
1
<
?php
2
$xml
=
<<<EOF
3
<people>
4
<person name="Joe"/>
5
<person name="John">
6
<children>
7
<person name="Joe"/>
8
</children>
9
</person>
10
<person name="Jane"/>
11
</people>
12
EOF
;
13
14
$xml1
=
<<<EOF
15
<people>
16
<person name="John">
17
<children>
18
<person name="Joe"/>
19
</children>
20
</person>
21
<person name="Jane"/>
22
</people>
23
EOF
;
24
25
26
$people
=
simplexml_load_string
(
$xml
);
27
$people1
=
simplexml_load_string
(
$xml
);
28
$people2
=
simplexml_load_string
(
$xml1
);
29
30
var_dump
(
$people1
==
$people
);
31
var_dump
(
$people2
==
$people
);
32
var_dump
(
$people2
==
$people1
);
33
34
?
>
35
===
DONE
===