public function setValue($value)
    {
        if (is_array($value)) {
            $value = implode(', ', $value);
        }

        if (!is_null($value)) {
            $this->_value = $value;
            $this->appendChild($value);
        }
    }
public function setValue($value)
    {
        if (is_array($value)) {
            $value = implode(', ', $value);
        }

        if (!is_null($value)) {
            $this->_value = $value;
            $this->appendChild($value);
        }
    }
public function setValue ( $ value ) { if ( is_array ( $ value ) ) { $ value = implode ( ', ' , $ value ) ; } if ( ! is_null ( $ value ) ) { $ this -> _value = $ value ; $ this -> appendChild ( $ value ) ; } }
Sets the value of the `XMLElement`. Checks to see
whether the value should be prepended or appended
to the children.

@param string|XMLElement|array $value
Defaults to true.
Sets the value of the XMLElement . Checks to see whether the value should be prepended or appended to the children .