The header function in PHP can be used to redirect the user from one page to another. It is an in-built function that sends raw HTTP header to the destination (client).
Syntax of header function
header( $header_value, $replace_value, $http_response_code)
Following are the parameters −
<?php header("Location: http://www.tutorialspoint.com"); exit; ?>
The website to which the page needs to be redirected is specified in the header function.