- header: documentation ( source)
<?php
namespace MyNamespace\Overwrite;
function header($str) {
echo $str;
}
namespace MyNamespace\Overwrite;
class Foo
{
function test()
{
header("Cache-Control: no-cache, must-revalidate");
}
}
(new Foo())->test();