validatePhone
function validatePhone(phone): boolean;Defined in: phone.ts:26
Validates a Pakistani mobile phone number.
Accepts local (03001234567), international (+923001234567, +92 (0) 300…),
and short (3001234567) formats, with common separators and Urdu digits.
The 03XX prefix must be allocated to a mobile operator.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
phone |
string |
The phone number string to validate |
Returns
Section titled “Returns”boolean
true if valid, otherwise false