I am in a situation where I need to use one variables value as a variable name and would appreciate some help in accomplishing it. I have an object that contains a variable with the value I needThe value of this variable is to be used as a variable name. So for instance lets say the variable above holds the value "leon" I need to be able to access $leon->something. I am using codeignitor if this helps and the variables I am referring to have been used to create result objects. So I have one query holding 10 results and I am performing a query for each result using its name field to pass into the view.Code:$object->variable
I really hope that makes sense to someone!