Html::tel()
Generates an <a>
tag for a phone number
Html::tel(string $tel, string|array|null $text = null, array $attr = [ ]): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$telrequired | string |
no default value | The phone number |
$text | string orarray ornull |
null
|
The optional text; if null , the phone number will be used as text |
$attr | array |
[ ]
|
Additional attributes for the tag |
Return type
string
The generated HTML