This commit is contained in:
2024-07-29 15:57:20 +03:00
parent 95f56a04d3
commit 200763725e
34 changed files with 936 additions and 72 deletions

28
kernel/Header.php Executable file
View File

@ -0,0 +1,28 @@
<?php
/**
* Created by PhpStorm.
* User: kirill
* Date: 16.06.19
* Time: 0:22
*/
namespace kernel;
class Header
{
protected $list = [];
public function add($key, $value)
{
$this->list[$key] = $value;
}
public function set()
{
foreach ($this->list as $key=>$v){
header($key . ": " . $v);
}
}
}