I'm in the middle of a problem, I'd like to use a array
as a temporary table, more or less like this:
$array = [
"codigo" => "0123",
"descricao" => "produto"
];
But I would need it to be global , but I have many doubts, can this be too heavy on the server? Are global variables conflicting with clients, or are they like sessions, and are they not shared between hits?
And I would also like to ask you an example of how to use global arrays.
Thank you in advance