What are the drawbacks of using "@" in front of "get_headers" function in PHP for error handling and debugging?

Using "@" in front of a function call like "get_headers" suppresses any potential errors or warnings that may occur during the function execution. This can make it difficult to debug issues or handle errors effectively. Instead of suppressing errors, it is recommended to use proper error handling techniques such as try-catch blocks to handle exceptions and errors gracefully.

<?php

$url = 'https://example.com';
$headers = [];

try {
    $headers = get_headers($url);
} catch (Exception $e) {
    echo 'Error fetching headers: ' . $e->getMessage();
}

print_r($headers);

?>