Quick Question
Lets say I have
$colname = 'offer_id';
and then I want to get a value from an object with the property name like $colname
echo $object->$colname;
Usually to do a variable on the fly, I would do $object->${$colname} but its not working
Any one can help ?
This should be: