TbHtml::address PHP Method

address() public static method

Generates an address block.
public static address ( $text, array $htmlOptions = [] ) : string
$text
$htmlOptions array additional HTML attributes.
return string the generated block.
    public static function address($text, $htmlOptions = array())
    {
        return self::tag('address', $htmlOptions, $text);
    }

Usage Example

Example #1
0
 public function testAddress()
 {
     $I = $this->codeGuy;
     $html = TbHtml::address('Address text');
     $addr = $I->createNode($html, 'address');
     $I->seeNodeText($addr, 'Address text');
 }
TbHtml