I have a view file where I need to echo db column values using foreach method.
I have column e.g. column_a, column_b, column_c....
I am able to get values if I use <?= $variable_1->column_a; ?>
But I need to echo them like <?= $variable_1->column_.$variable_2; ?>
If I use it the second way, gives error
Message: Undefined property: stdClass::$column_