Substituting class name by variable in PHP
<p>Since which version of PHP is it possible to use the following:</p>

<pre><code>$class::method()-&gt;something($val);
</code></pre>

<p>I need to use this but in 5.2.11 I get a T_PAMAAYIM_whatever error, and I just wanted to determine whether it's version related or bad coding.</p>

<p>If it's version related, what's a valid alternative?</p>

<p>Thank you.</p>
