public function removeAnnouncement($xmlString)
    {
        $matches = [];

        preg_match('/<?xml version="(.*)" encoding="(.*)"?>(.*)$/isuU', $xmlString, $matches);

        return isset($matches[3]) ? $matches[3] : $xmlString;
    }
public function removeAnnouncement($xmlString)
    {
        $matches = [];

        preg_match('/<?xml version="(.*)" encoding="(.*)"?>(.*)$/isuU', $xmlString, $matches);

        return isset($matches[3]) ? $matches[3] : $xmlString;
    }
public function removeAnnouncement ( $ xmlString ) { $ matches = [ ] ; preg_match ( '/<?xml version="(.*)" encoding="(.*)"?>(.*)$/isuU' , $ xmlString , $ matches ) ; return isset ( $ matches [ 3 ] ) ? $ matches [ 3 ] : $ xmlString ; }
Removes XML declaration

@param string $xmlString

@return string
Removes XML declaration