Jump to content

Access To Variable From Functions


JustinK101

Recommended Posts

Well that's even worse. Sorry I didnt explain $my_global_var is acutall a class instance variable.

 

So I do:

 

$my_global_var->get_property1();

$my_global_var->get_property2();

$my_global_var->get_property3();

etc, etc, etc.

 

I just need $my_global_var class instance to exist in all functions with explicty setting it to global.

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.