#phone->tel() → string
Un link tel: per questo numero: +447700900123.
Esempio
<let name="x" type="phone" value="'+44 7700 900123'" />
<echo>{ $x->tel() }</echo>$x: phone = '+44 7700 900123'
echo $x->tel()Un campo è un dato semplice sul valore, letto con un punto e senza parentesi: $value.name. Un metodo richiede argomenti o esegue un'operazione, e si chiama con ->: $value->name(arguments), oppure passando il valore con la pipe: $value |> name(arguments).
| Campo | Tipo | Descrizione |
|---|---|---|
.country_code | string | Il prefisso internazionale senza +: 44 per un numero del Regno Unito. |
.national | string | Il numero dopo il prefisso. |
phone->tel() → string<let name="x" type="phone" value="'+44 7700 900123'" />
<echo>{ $x->tel() }</echo>$x: phone = '+44 7700 900123'
echo $x->tel()->convert(from?: 'json'|yaml|'csv'|'markdown'|'latex', to?: 'json'|yaml|'csv'|html|'markdown'|'latex', header?: bool, as?: type, headers?: list, indented?: bool)->from(type: 'json'|yaml|'csv'|'markdown'|'latex', header?: bool, as?: type)->is_a(type: word)->is_null()->or(fallback)->to(type: 'json'|yaml|'csv'|html|'markdown'|'latex', headers?: list, indented?: bool)->to_string()->type()->contains(text, ignore_case?: bool)->count()->ends_with(text, ignore_case?: bool)->escape()->index_of(text, ignore_case?: bool, last?: bool)->markdown_escape()->matches(pattern: regex)->pad(width: number, char?, start?: bool)->slice(start: number, end?: number)->starts_with(text, ignore_case?: bool)->truncate(length: number, suffix?)->url_encode()