• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Super-Noob question

Sorry if this place is the wrong place to post but i'm a CI developer and i didn't know where to ask this... so apologies in advance.

Ok, so I never formally learned PHP... i just picked it up as I learned CI.

If i have a class and it has member "var_x"... I reference it by

But is there a way I can do this?


I remember seeing something like this in FreakAuth and i was blow away (i don't know why) but i can't seem to recall the correct method..

Ok never mind.. i answered my own question.
Please disregard.

The concept ist called "dynamic variables" or "variable variables"

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.