You appear to be a bot. Output may be restricted
Description
Return an HTML opening tag
Usage
$string = retstag( $tag, $class, $id, $extra );
Parameters
- $tag
- ( string ) required – the HTML tag. e.g. span
- $class
- ( string ) optional – CSS classes
- $id
- ( string ) optional – unique ID
- $extra
- ( string ) optional – additional fields formatted using kv()
Returns
string an HTML opening tagSource
File name: oik-bwtrace/libs/bobbfunc.phpLines:
1 to 11 of 11
function retstag( $tag, $class=NULL, $id=NULL, $extra=NULL ) { $stag = '<' . $tag ; if ( $class <> NULL ) $stag.= ' class="' . $class. '"'; if ( $id <> NULL ) $stag.= ' id="' . $id. '"'; if ( $extra <> NULL ) $stag .= ' '. $extra; $stag.= '>'; return( $stag ); }View on GitHub View on Trac