I need to make something like this but the header location don't work when he is in a function.
How i can make a header location or something like this in a function ?
<?
function Heloo()
{
if(1 < 2) header('Location: test2.php');
$A = 'blabla';
}
echo "Helo Word";
Heloo();
?>