echo get php in header contents

PHP
<?php
// This will just redirect you to example.com
$url = "https://example.com";
header("Location: $url");  
?>
Source

Also in PHP: