Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
PHPHtmlParser
Dom
AbstractNode
setAttribute
PHPHtmlParser\Dom\AbstractNode::setAttribute PHP Method
AbstractNode Class Documentation
Show file
Open project: paquettg/php-html-parser
setAttribute()
public
method
A wrapper method that simply calls the setAttribute method on the tag of this node.
public
setAttribute
(
string
$key
,
string
$value
)
$key
string
$value
string
public function setAttribute($key, $value) { $this->tag->setAttribute($key, $value); return $this; }
AbstractNode
__construct
__destruct
__get
__toString
ancestorByTag
clear
delete
find
getAncestor
getAttribute
getAttributes
getParent
getTag
id
innerHtml
isAncestor
nextSibling
outerHtml
previousSibling
propagateEncoding
removeAllAttributes
removeAttribute
setAttribute
setParent
text