2
I’m in the middle of a problem, I’d like to use a array
as a table temporary, sort of like this:
$array = [
"codigo" => "0123",
"descricao" => "produto"
];
But I would need him to go global, But I have a lot of questions, can this be too heavy on the server? Global variables give conflicts between customers, or are like sessions, and are not shared between accesses?
And I’d also like to ask for an example of how to use global arrays.
Thanks in advance
vc define it in a specific file and make a include in the other files that use this array.
– rray
and in that case it will not lose the values that were entered by other pages?
– Gabriel Santos
Can its values change? if yes seems better to use session.
– rray
Yes they can change, Sessions would not get too heavy??
– Gabriel Santos