class-html-data-table.php
HTML Data Table classes and functions.
Tags
Interfaces, Classes and Traits
- Html_Table_Cell
- Represents a cell in a <code>Html_Table_Row</code>.
- Html_Table_Row
- Represents a row in a <code>Html_Data_Table</code>.
- Html_Data_Table
- Represents a HTML table. This class allows you to build a table by sequentially adding headings, rows, data, etc, and then outputting to either HTML, and array or JSON.
Table of Contents
- b2_format_html_attributes() : string
- Formats an array of attributes into a string to be used inside a HTML tag.
Functions
b2_format_html_attributes()
Formats an array of attributes into a string to be used inside a HTML tag.
b2_format_html_attributes(array<string|int, mixed> $atts) : string
The first attribute will contain a single space before it.
E.g.
b2_format_html_attributes( array( 'data-thing' => 'foo', 'class' = 'test' ) )
would give this string:
' data-thing="foo" class="test"'
Parameters
- $atts : array<string|int, mixed>
-
The attributes to format
Return values
string —The attribute string