Get the text between end
Language:: PHP Type::snippet Back-end
This is the kind of function every web developer should have in their toolbox for future use: give it a string, a start, and an end, and it will return the text contained with end.
Source: http://www.jonasjohn.de/snippets/php/get-between.htm