[ create a new paste ] login | about

Link: http://codepad.org/W7AAa1Vh    [ raw code | output | fork ]

PHP, pasted on Jan 13:
1
2
3
4
<?php
$xml = '<foo>bar <child />bob</foo>';
$sx = simplexml_load_string($xml);
echo 'Combined text content is: ', (string)$sx;


Output:
1
Combined text content is: bar bob


Create a new paste based on this one


Comments: