Life and scope of static member properties
Posted: Mon Mar 09, 2009 9:51 am
Hi:
PHP5. If I create a class with a static member property (variable) and I use value of that property during the execution of a script what happens if other requests are made for the same script? If I were instantiating an object, each instance could be changed independently without affecting the others. But what if it's a static variable?
If I have multiple HTTP requests for the same script, and the variable is changed in each, will changes in one affect the other?
??
Please advise.
THANKS MUCH!
PHP5. If I create a class with a static member property (variable) and I use value of that property during the execution of a script what happens if other requests are made for the same script? If I were instantiating an object, each instance could be changed independently without affecting the others. But what if it's a static variable?
If I have multiple HTTP requests for the same script, and the variable is changed in each, will changes in one affect the other?
??
Please advise.
THANKS MUCH!