public getHtmlAttributes ( ) : string | ||
리턴 | string |
public function getHtmlAttributes()
{
$attrArr = [];
foreach ($this->attributes as $name => $val) {
$attrArr[] = "{$name}=\"{$val}\"";
}
return implode(' ', $attrArr);
}