static inside a class method
Posted: Tue Feb 06, 2007 11:25 pm
Do they retain their value across object instances as well?
Basically...if I have two objects derived form one parent class which has a function which uses a static to keep count...
Do the two child objects share the same static or does a new static get created for each object?
I've read the PHP docs but it makes no mention of this...one way to find out would be to test it...but incase someone already knows or cares to test for me...I would appreciate it
Basically...if I have two objects derived form one parent class which has a function which uses a static to keep count...
Do the two child objects share the same static or does a new static get created for each object?
I've read the PHP docs but it makes no mention of this...one way to find out would be to test it...but incase someone already knows or cares to test for me...I would appreciate it