How can I get the last value of an array?
<p>Below are the contents of the array. How can I get the last array, <code>[cat_name] =&gt; Lcd</code>?</p>

<p>I do not need:</p>

<pre><code>[cat_link] =&gt; lcd 
[cat_id] =&gt; 172
</code></pre>

<hr>

<pre><code>(
    [0] =&gt; Array
        (
            [cat_name] =&gt; Electronics
            [cat_link] =&gt; electronics
            [cat_id] =&gt; 164
        )

    [1] =&gt; Array
        (
            [cat_name] =&gt; Televisions
            [cat_link] =&gt; televisions
            [cat_id] =&gt; 165
        )

    [2] =&gt; Array
        (
            [cat_name] =&gt; Lcd
            [cat_link] =&gt; lcd
            [cat_id] =&gt; 172
        )

)
</code></pre>
