By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 1,552 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

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

P: 23
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
Jan 28 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
there isnít a single function but a combination of 2 functions and a little bit of logic should solve that.
Jan 29 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.