#phone->tel() → string
Un enlace tel: para él: +447700900123.
Ejemplo
<let name="x" type="phone" value="'+44 7700 900123'" />
<echo>{ $x->tel() }</echo>$x: phone = '+44 7700 900123'
echo $x->tel()Un campo es un dato fijo sobre el valor, que se lee con un punto y sin corchetes: $value.name. Un método recibe argumentos o realiza una acción, y se llama con ->: $value->name(arguments), o con el valor encadenado: $value |> name(arguments).
| Campo | Tipo | Descripción |
|---|---|---|
.country_code | string | El código de llamada del país sin el +: 44 para un número del Reino Unido. |
.national | string | El número después del código del país. |
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()