headerlocaton in php 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");
?>