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
$name = "value_" . $id; echo $myObject->$name;