openssl_csr_get_public_key

Supported Versions: PHP 5 >= 5.2.0, PHP 7, PHP 8
Returns the public key of a CSR
<?php openssl_csr_get_public_key(OpenSSLCertificateSigningRequest|string $csr, bool $short_names = true): OpenSSLAsymmetricKey|false