KScript docs
EN

phone fields and methods

A field is a plain fact about the value, read with a dot and no brackets: $value.name. A method takes arguments or does work, and is called with ->: $value->name(arguments), or with the value piped in: $value |> name(arguments).

Fields

FieldTypeDescription
.country_codestringThe country calling code without +: 44 for a UK number.
.nationalstringThe number after the country code.

From KScript.Core

#phone->tel() → string

A tel: link for it: +447700900123.
Example
<let name="x" type="phone" value="'+44 7700 900123'" />
<echo>{ $x->tel() }</echo>
$x: phone = '+44 7700 900123'
echo $x->tel()

Methods from any

Methods from string