get_headers

Supported Versions: PHP 5, PHP 7, PHP 8
Fetches all the headers sent by the server in response to an HTTP request
<?php get_headers(string $url, bool $associative = false, ?resource $context = null): array|false