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

Breadcrumb

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

function Headers::toArray

1 call to Headers::toArray()
Headers::toString in vendor/symfony/mime/Header/Headers.php

File

vendor/symfony/mime/Header/Headers.php, line 257

Class

Headers
A collection of headers.

Namespace

Symfony\Component\Mime\Header

Code

public function toArray() : array {
    $arr = [];
    foreach ($this->all() as $header) {
        if ('' !== $header->getBodyAsString()) {
            $arr[] = $header->toString();
        }
    }
    return $arr;
}

API Navigation

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