mirror of
https://github.com/php/php-src.git
synced 2024-10-22 16:57:05 +00:00
24 lines
336 B
Plaintext
24 lines
336 B
Plaintext
|
--TEST--
|
||
|
SimpleXML and Split text content
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if (!extension_loaded('simplexml')) print 'skip';
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$xml =<<<EOF
|
||
|
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||
|
<foo>bar<baz/>bar</foo>
|
||
|
EOF;
|
||
|
|
||
|
$sxe = simplexml_load_string($xml);
|
||
|
|
||
|
var_dump((string)$sxe);
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECT--
|
||
|
string(6) "barbar"
|
||
|
===DONE===
|