core
db
html
utility
HtmlElement::setAttribute
public HtmlElement setAttribute
( string $name, string $value )
エレメントの属性値を設定します。
パラメーター
| 名前 | 型 | 内容 |
|---|---|---|
| $name | string | 設定する属性名。 |
| $value | string | $nameで指定した属性に対して設定する属性値。 |
返り値
自身のインスタンスを返します。