public function getAttributesString() {
      $str = "";
      foreach ($this->attributes as $attr) {
        $str .= $attr->getKey() . "='" . $attr->getValue() . "',";
      } 
      return substr($str, 0, strlen($str) - 1);
    }
public function getAttributesString() {
      $str = "";
      foreach ($this->attributes as $attr) {
        $str .= $attr->getKey() . "='" . $attr->getValue() . "',";
      } 
      return substr($str, 0, strlen($str) - 1);
    }
public function getAttributesString ( ) { $ str = "" ; foreach ( $ this -> attributes as $ attr ) { $ str .= $ attr -> getKey ( ) . "='" . $ attr -> getValue ( ) . "'," ; } return substr ( $ str , 0 , strlen ( $ str ) - 1 ) ; }
get the attributes
in one string
get the attributes in one string