array_intersect_key

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Computes the intersection of arrays using keys for comparison
<?php array_intersect_key(array $array, array ...$arrays): array
<?php     {

        parent::__construct($value);



        $this->preservedSubset = array_intersect_key($value, array_flip($preservedKeys));

        $this->cut -= \count($this->preservedSubset);

    }

}
<?php         $pin = base64_encode(hash('sha256', $pin, true));



        $a += [

            'subject' => new EnumStub(array_intersect_key($info['subject'], ['organizationName' => true, 'commonName' => true])),

            'issuer' => new EnumStub(array_intersect_key($info['issuer'], ['organizationName' => true, 'commonName' => true])),

            'expiry' => new ConstStub(date(\DateTime::ISO8601, $info['validTo_time_t']), $info['validTo_time_t']),

            'fingerprint' => new EnumStub([
<?php         $a += [

            'subject' => new EnumStub(array_intersect_key($info['subject'], ['organizationName' => true, 'commonName' => true])),

            'issuer' => new EnumStub(array_intersect_key($info['issuer'], ['organizationName' => true, 'commonName' => true])),

            'expiry' => new ConstStub(date(\DateTime::ISO8601, $info['validTo_time_t']), $info['validTo_time_t']),

            'fingerprint' => new EnumStub([

                'md5' => new ConstStub(wordwrap(strtoupper(openssl_x509_fingerprint($h, 'md5')), 2, ':', true)),