Is there a best practice to merge contacts?
My phone is connected to the Google account, so it sync with GMail contacts. I can download with Google API PHP client my contact datas. But I have contacts from my phone, from skype and from viber, facebook, etc. So I have multiple contacts for my friends.
It looks like this:
Contact #1:
Name: Friend One
Phone number: +1234567890
E-mail: friend-one@example.com
Contact #2:
Name: One Friend
Phone number:
E-mail: friend-one@example.com
E-mail: one-friend@example.com
Contact #3:
Name: Uncle Joe
Phone number: +9876543210
Phone number: +1234567890
E-mail: unclejoe@example.com
Is there a best prctice in PHP to merge this three contacts into one, what is looks like this:
Name: Friend One
Nickname: Uncle Joe
Phone number: +1234567890
Phone number: +9876543210
E-mail: friend-one@example.com
E-mail: one-friend@example.com
E-mail: unclejoe@example.com
It's irrelevant whichwas is the "Name" or "Nickname", I just need to keep the datas.
Is there a best practice to merge contacts?