how does php header location works code example
Example: header location in php
<?php
// This will redirect to google.com
$url = "https://google.com";
header("Location: $url");
?>
<?php
// This will redirect to google.com
$url = "https://google.com";
header("Location: $url");
?>