pQuery\DomNode::toString_attributes PHP 메소드

toString_attributes() 보호된 메소드

Returns all the attributes and their values
protected toString_attributes ( ) : string
리턴 string
    protected function toString_attributes()
    {
        $s = '';
        foreach ($this->attributes as $a => $v) {
            $s .= ' ' . $a;
            if (!$this->attribute_shorttag || $v !== $a) {
                $quote = strpos($v, '"') === false ? '"' : "'";
                $s .= '=' . $quote . $v . $quote;
            }
        }
        return $s;
    }
DomNode