My Html Helper
This helper is designed to provide assistence building custom html tags.
Function Reference [+]
tag('$tag', '$vals', [$attrs=array()])
Wrap an string or array of values in opening and closing tag.
Returns
string
Parameters
(string) $tag opening tag element (string) $vals closing tag element (mixed) $attrs array of values to be enclosed by tags
quote('$quote', ['$cite'=NULL], ['$title'=NULL], ['$class'='quote'])
Wrap a string into an HTML blockquote with quotes and cite added.
Returns
string
Parameters
(string) $quote string to be enclosed by quote elements (string) $cite string source value (string) $title string company/position value (string) $class string css class
html_attrs('$attrs')
Create HTML attributes.
Returns
string
Parameters
(mixed) $attrs HTML attributs