Extending a class with a variable?
<p>This works and is tested.
PHP Code:</p>

<pre><code>$data_stats = json_decode($ret);
$projected_points = $data_stats-&gt;body-&gt;player_stats-&gt;42550689-&gt;FPTS
</code></pre>

<p>I just need to know how to do it using a variable. Something like this:
PHP Code:</p>

<pre><code>$data_stats = json_decode($ret);
$projected_points = $data_stats-&gt;body-&gt;player_stats-&gt;$id-&gt;FPTS 
</code></pre>

<p>How can I make $id work here?</p>

<p>Also is this called extending a class? I don't even know the correct terminology to describe my question.</p>
