public function addAttributes($values) : htmlTag
La méthode addAttributes accepte en paramètre une tableau associatif utilisé pour ajouter une série d'attributs à une balise HTML. Reportez vous à la méthode addAttribute pour plus de détail sur les attributs.
La méthode retourne l'instance de l'objet concerné: $this.
<?php
  require_once('classes.php');
  $tag = new htmlTag('img');
  $tag->addAttributes(array(
   'src' => 'logo.jpg',
   'border' => 0,
   'width' => 250,
   'height' => 250
  ));
  echo $tag->content();
<img src="logo.jpg" border="0" width="250" height="250">