Skip to content
Thomas Weinert edited this page Jul 25, 2014 · 5 revisions

FluentDOM\Text

FluentDOM\Text extends DOMText and allows it to be cast to a string.

$dom = new FluentDOM\Document();
$dom->loadXml('<xml>Hello World!</xml>');
echo $dom->documentElement->firstChild;

Output:

Hello World!
Clone this wiki locally