# formatPhone

Source: https://pakdatakit.dev/api/typescript/phone/functions/formatphone/

```ts
function formatPhone(phone): string | null;
```

Defined in: [phone.ts:36](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/phone.ts#L36)

Formats a Pakistani mobile number to international E.164 style (`+923001234567`).

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `phone` | `string` | The phone number string to format |

## Returns

`string` \| `null`

Formatted phone number, or `null` if invalid
