Powered By Blogger

Monday, 10 January 2011

Variable variables

Variable variables enable you to change the name of your variable dynamically
 For e.g.:
A=10;
$b=’A’
Now you can refer the value of the variable A with the $$b
As well as you can change the value indirectly
$$b= 15;
Will change the value of variable A to 15

No comments:

Post a Comment