preg_split

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Split string by a regular expression
<?php preg_split(    string $pattern,    string $subject,    int $limit = -1,    int $flags = 0): array|false
<?php             if (! preg_match('/:\s*/', $header)) {

                return strlen($header);

            }

            [$name, $value] = preg_split('/:\s*/', $header, 2);

            $name = strtolower($name);

            $value = trim($value);

            if ($name === 'lambda-runtime-aws-request-id') {