title: Getting object variable using string + variable
body: <p>I would like to do something like this:
  <code>echo $myObject-&gt;value_$id</code> but I don't know proper syntax and I'm not sure if it is possible.</p>
  
  <p><code>$id</code> is some PHP variable, for example has value 1. In the end, I would like to get <code>$myObject-&gt;value_1</code> but the number part (<code>1</code>) should be dynamic.</p>