How would I use PHP to extract everything in between [startstring] and [endstring] from this string:
[startstring]hello = guys[endstring] hello guys [startstring]jerk = you[endstring] welcome to the universe
I'd like to find all the matches of [startstring] and [endstring], and echo the text inside. Kinda like a delimiter. And I would like all the matches echoed to be seperated by a space.
How would I go about accomplishing this? Would this require regex? Could you provide a sample?
Thanks so much! :)
 
     
    