/**
 * Set Anchor element underline style.
 *
 * @return self Returns instance of the Anchor element class.
 *
 * @access public
 */
public function underline(): self

Examples

Set underline style using fluent interface

use function Thermage\anchor;
use function Thermage\render;

// ...

render(
  anchor('Thermage')->href('https://awilum.github.io/thermage/')->underline()
);

Set underline style using magic classes pipeline

use function Thermage\anchor;
use function Thermage\render;

// ...

render(
  anchor('Thermage', 'underline')->href('https://awilum.github.io/thermage/')
);

Set underline style using shortcodes

use function Thermage\anchor;
use function Thermage\render;

// ...

render( 
  anchor('[underline]Thermage[/underline]')->href('https://awilum.github.io/thermage/').
  anchor('[u]Thermage[/u]')->href('https://awilum.github.io/thermage/')
);
Terminal
$ php thermage.php