$key = file_get_contents('http://keyserver.pramberger.at/pks/lookup?op=get&search=userid');
this code gives me public key with the html tag .how to extract the public key block form begin pgp public key block ---to---- end pgp public key block and using this public key i need to encrypt the data .i need to do it in php.