code: protected function textAfterString($haystack, $needle)
    {
      $result = "";
      $needleLength = strlen($needle);
  
      if($needleLength > 0 && preg_match("#$needle([^\r\n]+)#i", $haystack, $match))
      {
        $result = trim(substr($match[0], -(strlen($match[0]) - $needleLength)));
      }
  
      return $result;
    }
docs: Text After String
  
  Returns the text after the given string, if found
  
  @param string $haystack
  @param string $needle
  @return string Found string