Is there such a thing in PHP? Otherwise, I try static fields, $ _SERVER, $ GLOBAL, everything leads to the same result, when the page is reloaded, it all disappears.
That is, such code (or similar with other methods):
$_SERVER['test'] = 'test'; When you try to display on another page like this:
var_dump($_SERVER['test']); Gives NULL. Where am I doing something wrong or is there no global object in PHP?
Ps No need to tell that global objects are bad, that if the server crashes, all data will fly off. I just need to pass the lab to the university and forget php forever, so I don’t want to bother with object serialization and saving))