Download src/php/php-src/ext/simplexml/tests/013.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/simplexml/tests/013.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/simplexml/tests/013.phpt
-
curl -L -o 013.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/simplexml/tests/013.phpt
263 Bytes
| --TEST-- | |
| SimpleXML: Split text content | |
| --EXTENSIONS-- | |
| simplexml | |
| --FILE-- | |
| $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); | |
| --EXPECT-- | |
| string(6) "barbar" | |