Those arrays are the same. You said to access the first one you do $first['username']
and for the second one you do $second['User']['username']
Since they are the same, your variable $first
is pointing to the inner array. Or in other words, something equivalent to this:
$first = $second['User']
Once you have that line, you will simply be able to do $first['username']
So... somewhere in your script you are assigning $first
to the inner array