Thursday, July 30, 2009

How To find positions of a word inside text in php?

stripos() function will find position of first occurrence


i want to find all positions


what is the php code!

How To find positions of a word inside text in php?
Why don't you choose best answers when people give them to you?
Reply:You should combine substr_count() and stripos() to find them. I don't believe there is a function that will return that array.


No comments:

Post a Comment