Beispiel #1
0
 /**
  * Returns an opening HTML tag, (possibly) with attributes.
  * 
  * @param string $tag The HTML tag (default: 'div')
  * @param array|string $attributes The as an assoc. array. (optional)
  * @return string The opening HTML tag string.
  */
 public static function open($tag, $attributes = array())
 {
     return '<' . $tag . (empty($attributes) ? '' : Attributes::toString($attributes)) . '>';
 }