Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse wrong if last char is '.' #36

Open
okabrv opened this issue Jul 15, 2017 · 1 comment
Open

Parse wrong if last char is '.' #36

okabrv opened this issue Jul 15, 2017 · 1 comment

Comments

@okabrv
Copy link

okabrv commented Jul 15, 2017

Try this:

$parser = new FullNameParser();
$split_name = $parser->parse_name('Fname Lname, Ph.D.');
var_dump($split_name);
/*
array(7) {
    ["salutation"]=>
    string(0) ""
    ["fname"]=>
    string(11) "Fname Lname"
    ["initials"]=>
    string(0) ""
    ["lname"]=>
    string(5) "Ph.D."
    ["lname_base"]=>
    string(5) "Ph.D."
    ["lname_compound"]=>
    string(0) ""
    ["suffix"]=>
    string(0) ""
  }
*/
@joshfraser
Copy link
Owner

hmmm. that's not good. feel free to send me a pull request if you figured out the fix already.

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

No branches or pull requests

2 participants