I have a loop that goes from 1 to 10 and prints values in
$entity_object->field_question_1 through 10 so...
$entity_object->field_question_1, $entity_object->field_question_2, etc
And I want to print this in this loop, how can I get the variable? I tried doing the
$var = "entity_object->field_question_".$i;
print $$var;
But that did not work...
How can I get these values?