<?php array_key_exists(string|int|float|bool|resource|null $key, array $array): bool
<?php protected function correctHeadersSetIncorrectlyByPhpDevServer(array $headers): array { if (array_key_exists('HTTP_CONTENT_LENGTH', $headers)) { $headers['CONTENT_LENGTH'] = $headers['HTTP_CONTENT_LENGTH']; }
<?php $headers['CONTENT_LENGTH'] = $headers['HTTP_CONTENT_LENGTH']; } if (array_key_exists('HTTP_CONTENT_TYPE', $headers)) { $headers['CONTENT_TYPE'] = $headers['HTTP_CONTENT_TYPE']; }
<?php protected function getReasonFromStatusCode(int $code): ?string { if (array_key_exists($code, self::STATUS_CODE_REASONS)) { return self::STATUS_CODE_REASONS[$code]; }