Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SMime.php

function SMime::getParametersFromHeader

1 call to SMime::getParametersFromHeader()
SMime::convertMessageToSMimePart in vendor/symfony/mime/Crypto/SMime.php

File

vendor/symfony/mime/Crypto/SMime.php, line 99

Class

SMime
@author Sebastiaan Stok <s.stok@rollerscapes.net>

Namespace

Symfony\Component\Mime\Crypto

Code

private function getParametersFromHeader(string $header) : array {
    $params = [];
    preg_match_all('/(?P<name>[a-z-0-9]+)=(?P<value>"[^"]+"|(?:[^\\s;]+|$))(?:\\s+;)?/i', $header, $matches);
    foreach ($matches['value'] as $pos => $paramValue) {
        $params[$matches['name'][$pos]] = trim($paramValue, '"');
    }
    return $params;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal