How can PHP be used to prevent the full URL from appearing in the input bar when a link is clicked?

When a link is clicked, the full URL can appear in the input bar, which may not be desirable for certain situations such as redirecting users while maintaining a clean URL display. To prevent the full URL from appearing, you can use PHP to redirect users using header() function with the location header set to the desired URL without revealing it in the input bar.

<?php
// Redirect to the desired URL without showing the full URL in the input bar
header("Location: https://www.example.com/destination-page.php");
exit();
?>