dynamic property call
<p>is there a shorter way to achieve the following:</p>

<pre><code>$i = 1;
$prop = 'image' . $i;
$image = $this-&gt;getObject-&gt;$prop;
</code></pre>

<p>I have in mind there was something like </p>

<pre><code>$image = $this-&gt;getObject-&gt;image{$i};
</code></pre>

<p>any ideas?</p>
