You appear to be a bot. Output may be restricted
Description
Create a table data cellIn the first version the cell was not created if there was no value. In oik v2.4 the cell is created even when there is no contents. This may make it easier for [bw_csv] with blanks and zeros. If the cell is an array we treat it as a simple array.
Usage
bw_td( $text, $class, $id );
Parameters
- $text
- ( string ) optional – cell contents
- $class
- ( string ) optional – table data class
- $id
- ( string ) optional – table data ID
Returns
voidTO DO
Since this array may be partially associative we need to unassoc it firstSource
File name: oik-bwtrace/libs/bobbforms.phpLines:
1 to 8 of 8
function bw_td( $text=NULL, $class=NULL, $id=NULL ) { stag( "td", $class, $id ); if ( is_array( $text ) ) { $text = implode( ", ", $text ); } e( $text ); etag( "td"); }View on GitHub View on Trac