Get or set the text contents of a node.
public text ( string $text = null ) : mixed |
$text |
string |
If this is not NULL, this value will be set as the text of the node. It
will replace any existing content. |
return |
mixed |
A DOMQuery if $text is set, or the text content if no text
is passed in as a pram. |