Skip to content

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.

Parameter Type Description
phone string The phone number string to validate

boolean

true if valid, otherwise false