src/Amadeus/Client/Util/MsgBodyExtractor.php
private function getStringBetween($string, $start, $end)
    {
        $startPos = strpos($string, $start) + strlen($start);

        $endPos = strlen($string) - strpos($string, $end);

        return substr($string, $startPos, -$endPos);
    }
private function getStringBetween($string, $start, $end)
    {
        $startPos = strpos($string, $start) + strlen($start);

        $endPos = strlen($string) - strpos($string, $end);

        return substr($string, $startPos, -$endPos);
    }
Get substring between two strings

@param $string
@param $start
@param $end
@return bool|string