php script to remove duplicate text portions in a string

Job ID: 33133687

Budget: $30 – $250 USD

Hi, I need a php script that removes duplicate text elements in a string that contains text like the one shown below. I have $50 for this. The script should be provided so it can be tested at http://phptester.net/

TEXT SAMPLE:

ExperienceExperience

Elevator Speech Training logo
Founder and CEOFounder and CEO
Elevator Speech TrainingElevator Speech Training
Jan 2019 - Present · 3 yrs 3 mosJan 2019 - Present · 3 yrs 3 mos
FounderFounder
Atlantic Point, LLCAtlantic Point, LLC
Jan 2012 - Present · 10 yrs 3 mosJan 2012 - Present · 10 yrs 3 mos
CreatorCreator
Messagehouse.org · Self-employedMessagehouse.org · Self-employed
Dec 2011 - Present · 10 yrs 4 mosDec 2011 - Present · 10 yrs 4 mos
Free tool for helping teams create key messages and stay on message. Used by for-profits, nonprofits and governmental organizations worldwide. Free tool for helping teams create key messages and stay on message. Used by for-profits, nonprofits and governmental organizations worldwide.
Knight Foundation logo
Vice President of CommunicationsVice President of Communications
John S. and James L. Knight FoundationJohn S. and James L. Knight Foundation
Mar 2007 - Jan 2012 · 4 yrs 11 mosMar 2007 - Jan 2012 · 4 yrs 11 mos
New World Symphony logo
Vice President of CommunicationsVice President of Communications
New World SymphonyNew World Symphony
2004 - 2006 · 2 yrs
Related categories: PHP Regular Expressions