joshfraser/PHP-Name-Parser

Last Name Comma First Name comes out wrong

Opened this issue · 2 comments

Isn't LastName <comma><space> FirstName a very common write-out of a persons full name?

print_r(FullNameParser::parse('LASTNAME, FIRSTNAME'));

Array
(
    [salutation] => 
    [fname] => Lastname
    [initials] => 
    [lname] => Firstname
    [lname_base] => Firstname
    [lname_compound] => 
    [suffix] => 
)

You're right. And it's the first thing listed under possible improvements. Feel free to send a pull request if you end up implementing that.

😁 totally missed that in the readme..