Jump to content

[SOLVED] Quick Variables Question...


jxrd

Recommended Posts

I was just wondering, is there a way to make variables retain their value after new calls to their parent class?

 

So for example:

class something
{
var $something;
}
$something = new something;
$something->something = 'yo';
$something = new something; // now something::$something is wiped

Any info would be awesome.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/160533-solved-quick-variables-question/
Share on other sites

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.