This function determines whether the provided value is of type str and contains a telephone number.
This function does not generate a change.
is_tel(value)
| Argument | Type | Description |
|---|---|---|
| value | any (required) | The value to be tested. |
Returns true if the given value is of type str and contains a telephone number, else false.
This code shows some return values for is_tel():
[
is_tel( '+31 012345678' ),
is_tel( '380-44-123-4567' ),
is_tel( '(011) 380 44 123 4567' ),
];
Return value in JSON format
[
true,
true,
true
]