Get substring between two strings PHP

Right below lies a function that returns the string between two other strings. That’s it

Source : http://stackoverflow.com/questions/5696412/get-substring-between-two-strings-php