PHP: How to get an array's value by its numeric offset if it's an associative array?
<p>I have an associative array which when var dumped looks like this:</p>

<pre><code>Array
(
    [tumblr] =&gt; Array
        (
            [type] =&gt; tumblr
            [url] =&gt; http://tumblr.com/
        )

    [twitter] =&gt; Array
        (
            [type] =&gt; twitter
            [url] =&gt; https://twitter.com/
        )

)
</code></pre>

<p>As you can see the key's are custom "tumblr" and "twitter" and not numeric 0 and 1.</p>

<p>Some times I need to get the values by the custom keys and sometimes I need to get values by numeric keys.</p>

<p>Is there anyy way I can get <code>$myarray[0]</code> to output:</p>

<pre><code>(
    [type] =&gt; tumblr
    [url] =&gt; http://tumblr.com/
)
</code></pre>
