Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- XMLReader: readString basic --EXTENSIONS-- xmlreader --FILE-- <?php $xml = '<?xm..
Decoded Output download
--TEST--
XMLReader: readString basic
--EXTENSIONS--
xmlreader
--FILE--
<?php
$xml = '<?xml version="1.0" encoding="UTF-8"?><books><book>Book1</book><book>Book2</book></books>';
$reader = new XMLReader();
$reader->xml($xml);
$reader->read();
echo $reader->readString();
?>
--EXPECT--
Book1Book2
Did this file decode correctly?
Original Code
--TEST--
XMLReader: readString basic
--EXTENSIONS--
xmlreader
--FILE--
<?php
$xml = '<?xml version="1.0" encoding="UTF-8"?><books><book>Book1</book><book>Book2</book></books>';
$reader = new XMLReader();
$reader->xml($xml);
$reader->read();
echo $reader->readString();
?>
--EXPECT--
Book1Book2
Function Calls
None |
Stats
MD5 | c6048cdf41d6b0ad383aa1031a87a56a |
Eval Count | 0 |
Decode Time | 76 ms |