- header: documentation ( source)
<?php
// https://dpaste.de/PEJj/raw
// http://www.php.net/manual/en/functions.anonymous.php
// Answering @redres in IRC #php
$location = "http://google.com";
$closure = function() use ($location)
{
header('Location:'.$location);
};
$closure();
?>