How to check for double occurence of a string and delete one

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joseph Cobham
    New Member
    • Jan 2012
    • 23

    How to check for double occurence of a string and delete one

    Hello...
    I woulk like to know if ther is any php pre designed function that checks a string and searches through it to there is one or more occurence of a phrase or another string and deletes all the other ones and leave only one occurency of the string or phrase
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    there isn’t a single function but a combination of 2 functions and a little bit of logic should solve that.

    Comment

    Working...