How can one output or find out the header in PHP?

To output or find out the header in PHP, you can use the `get_headers()` function. This function sends a GET request to the specified URL and returns an array of headers. You can then access and display the headers as needed.

$url = 'https://www.example.com';
$headers = get_headers($url);

foreach ($headers as $header) {
    echo $header . "<br>";
}