OpenPGP_Message::parse_string PHP Méthode

parse_string() static public méthode

static public parse_string ( $input )
    static function parse_string($input)
    {
        $msg = new self();
        while (($length = strlen($input)) > 0) {
            if ($packet = OpenPGP_Packet::parse($input)) {
                $msg[] = $packet;
            }
            if ($length == strlen($input)) {
                // is parsing stuck?
                break;
            }
        }
        return $msg;
    }