PHP helper functions to help render a table/list of data