header("Location: /newpage.php"); exit;
header("Location: https://example.com"); exit;
header("Refresh: 5; url=/newpage.php");In this example, the user will be redirected to a different page after a delay of 5 seconds. The package library for PHP Redirect page is PHP's built-in function header().