Skip to content

Kirby 4.2.0

Html::tel()

Generates an <a> tag for a phone number

Html::tel(string $tel, array|string|null $text = null, array $attr = [ ]): string

Parameters

Name Type Default Description
$tel * string The phone number
$text array|string|null null The optional text; if null, the phone number will be used as text
$attr array [ ] Additional attributes for the tag

Return type

string

Parent class

Kirby\Toolkit\Html