I have an associative array which when var dumped looks like this:
Array
(
[tumblr] => Array
(
[type] => tumblr
[url] => http://tumblr.com/
)
[twitter] => Array
(
[type] => twitter
[url] => https://twitter.com/
)
)
As you can see the key's are custom "tumblr" and "twitter" and not numeric 0 and 1.
Some times I need to get the values by the custom keys and sometimes I need to get values by numeric keys.
Is there anyy way I can get $myarray[0] to output:
(
[type] => tumblr
[url] => http://tumblr.com/
)