Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

National Irish Numbers not formatted #7

Open
kanejoe opened this issue Oct 16, 2012 · 0 comments
Open

National Irish Numbers not formatted #7

kanejoe opened this issue Oct 16, 2012 · 0 comments

Comments

@kanejoe
Copy link

kanejoe commented Oct 16, 2012

An example would be:

 $ieNumberStr = "059 913 1656";
    $phoneUtil = PhoneNumberUtil::getInstance();
    try {
        $ieNumberProto = $phoneUtil->parseAndKeepRawInput($ieNumberStr, "IE");
        //var_dump($ieNumberProto);
    } catch (NumberParseException $e) {
        echo $e;
    }

    echo $phoneUtil->format($ieNumberProto, PhoneNumberFormat::NATIONAL) . PHP_EOL;
    // outputs 599131656

International formatting is fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant