attributes() public method

Build a list of HTML attributes from an array
public attributes ( array $attributes ) : string
$attributes array
return string
Example #1
0
 /**
  * Create a HTML button element.
  *
  * @param string  $value
  * @param array   $attributes
  * @return string
  */
 public function button($value = null, $attributes = array())
 {
     return '<button' . $this->html->attributes($attributes) . '>' . $this->html->entities($value) . '</button>';
 }