PHPHtmlParser\Dom\Tag::removeAllAttributes PHP Метод

removeAllAttributes() публичный Метод

Removes all attributes on this tag.
public removeAllAttributes ( ) : void
Результат void
    public function removeAllAttributes()
    {
        $this->attr = [];
    }

Usage Example

Пример #1
0
 /**
  * A wrapper method that simply calls the removeAllAttributes
  * method on the tag of this node.
  *
  * @return void
  */
 public function removeAllAttributes()
 {
     $this->tag->removeAllAttributes();
 }