PHP-Name-Parser icon indicating copy to clipboard operation
PHP-Name-Parser copied to clipboard

Last Name Comma First Name comes out wrong

Open kingIZZZY opened this issue 8 years ago • 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] => 
)

kingIZZZY avatar Aug 03 '17 18:08 kingIZZZY

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.

joshfraser avatar Aug 03 '17 20:08 joshfraser

😁 totally missed that in the readme..

kingIZZZY avatar Aug 04 '17 15:08 kingIZZZY