xref: /PHP-8.2/ext/simplexml/tests/013.phpt (revision 7f2f0c00)
1--TEST--
2SimpleXML: Split text content
3--EXTENSIONS--
4simplexml
5--FILE--
6<?php
7
8$xml =<<<EOF
9<?xml version="1.0" encoding="ISO-8859-1" ?>
10<foo>bar<baz/>bar</foo>
11EOF;
12
13$sxe = simplexml_load_string($xml);
14
15var_dump((string)$sxe);
16
17?>
18--EXPECT--
19string(6) "barbar"
20