PHP-Name-Parser
PHP-Name-Parser copied to clipboard
Last Name Comma First Name comes out wrong
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..