Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Propaganistas committed Apr 6, 2016
1 parent 05371ff commit 89b72cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ You can also enable more lenient validation (for example, fixed lines without ar
Format a fetched phone value using the helper function. `$country_code` is the country the phone number belongs to.

```php
phone_format($phone_number, $country_code, $format = PhoneNumberFormat::INTERNATIONAL)
phone_format($phone_number, $country_code = null, $format = PhoneNumberFormat::INTERNATIONAL)
```

If no `$country_code` was given, the current application locale will be used as default.
The `$format` parameter is optional and should be a constant of `libphonenumber\PhoneNumberFormat` (defaults to `libphonenumber\PhoneNumberFormat::INTERNATIONAL`)

0 comments on commit 89b72cf

Please sign in to comment.