TbHtml::b PHP Method

b() public static method

Generates bold text.
public static b ( string $text, array $htmlOptions = [] ) : string
$text string the text to style.
$htmlOptions array additional HTML attributes.
return string the generated text.
    public static function b($text, $htmlOptions = array())
    {
        return self::tag('strong', $htmlOptions, $text);
    }

Usage Example

Example #1
0
 public function testBold()
 {
     $I = $this->codeGuy;
     $html = TbHtml::b('Bold text');
     $strong = $I->createNode($html, 'strong');
     $I->seeNodeText($strong, 'Bold text');
 }
All Usage Examples Of TbHtml::b
TbHtml