occurance of string

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-04-19T22:50:39Z Indexed on 2010/04/19 22:53 UTC
Read the original article Hit count: 115

Filed under:
|

i know you can find the first and last occurrence in a string using strstr() and strchr but how do i find the second occurrence, and the third occurrence of needle inside haystack? im using this to find the last occurrence of needle and the first occurrence of another needle and their position, then return the string that is in between each. thank you.

© Stack Overflow or respective owner

Related posts about php

Related posts about strstr