Sunday, July 15, 2012

PHP: How to kill global variables in php?

Here, I am going to show, How to de-scope or kill the global variable.  In below code, I have used to two global variable for my testing. And I have killed first  variable($killinscope) only within the function "scope" and the variable ($killinscope) will be available outside of the function. And then I have killed second variable ($killinuniverse) and the variable ($killinuniverse) wont available anywhere. To improve performance kill the global variable as soon as possible.


Note: Please write your queries and suggestion as comment.

No comments:

Post a Comment