5.4 dereferencing to valid 5.3 array call
<p>Hi I am having trouble understanding what to do to call an array element in 5.3.   I started php programming in 5.4 so it is vague and I am new. </p>

<p>I get an error on this line of code which uses dereferencing </p>

<pre><code>   $data['data'] = $results-&gt;result()[0];
</code></pre>

<p>However, I can't use 5.4 for my server only works with 5.3.  How can I dereference in a 5.3 manner?</p>

<p>I have checked the docs:</p>

<pre><code>&lt;?php
function getArray() {
return array(1, 2, 3);
}

// on PHP 5.4
$secondElement = getArray()[1];

// previously
$tmp = getArray();
$secondElement = $tmp[1];

// or
list(, $secondElement) = getArray();
?&gt;
</code></pre>

<p>but creating a method call seems cumbersome</p>
