Jump to content

Exit Global Variables at end of script


acctman

Recommended Posts

What do you mean by "exit out of all global variables"?

 

When PHP finishes executing the script all variables/functions/classes will be unset. PHP does not keep anything in memory after once the script has executed.

 

when i do a file include that has Global vars set, it affects the entire page

What do you mean by "exit out of all global variables"?

 

When PHP finishes executing the script all variables/functions/classes will be unset. PHP does not keep anything in memory after once the script has executed.

 

when i do a file include that has Global vars set, it affects the entire page

 

Why do you think global variables are considered bad design and bad practice?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.