Get a substring between two strings in PHP

So you need to get a subtring between two strings? A quick Google returns about 101,000 results, the first three of which are from StackOverflow and solve the problem for rather specific use-cases. I wanted to solve the problem once-and-for-all in a more general-purpose way.

Continue reading “Get a substring between two strings in PHP”