I would like to do something like this: echo $myObject->value_$id but I don\'t know proper syntax and I\'m not sure if it is possible.
echo $myObject->value_$id
$id
This works:
$variableName = 'value_whatever_1337'; echo $myObject->$variableName;