file_get_contents的使用,str_replace的使用 $rsapublickey = file_get_contents("C:\\HwsHostMaster\\wwwroot\\catpay\\pigcms\\libs\\org\\Alipay\\rsa_public_key.pem");$rsapublickey = str_replace(array('-----BEGIN PUBLIC KEY-----', '-----END
$rsapublickey = file_get_contents("C:\\HwsHostMaster\\wwwroot\\catpay\\pigcms\\libs\\org\\Alipay\\rsa_public_key.pem"); $rsapublickey = str_replace(array('-----BEGIN PUBLIC KEY-----', '-----END PUBLIC KEY-----', PHP_EOL), '', $rsapublickey); $rsapublickey = trim($rsapublickey);