public function nodeValue(DOMElement &$element, $value = null)
    {
        // If given value is null, return the current value
        if (is_null($value)) {
            return $element->nodeValue;
        }

        // Return the new value
        return $element->nodeValue = $value;
    }
public function nodeValue(DOMElement &$element, $value = null)
    {
        // If given value is null, return the current value
        if (is_null($value)) {
            return $element->nodeValue;
        }

        // Return the new value
        return $element->nodeValue = $value;
    }
public function nodeValue ( DOMElement & $ element , $ value = null ) { // If given value is null, return the current value if ( is_null ( $ value ) ) { return $ element -> nodeValue ; } // Return the new value return $ element -> nodeValue = $ value ; }
Sets or gets the nodeValue of the given DOMElement.
Returns the old value or the DOMElement if value is set.

@param DOMElement $element The DOMElement to handle.
@param string     $value   The value to be set.
If empty, the element's value will be returned.

@return string The node value (old or new).
Sets or gets the nodeValue of the given DOMElement . Returns the old value or the DOMElement if value is set .