I'm trying to get the key names of the 2-level array. Given an $aData array like this:
[0][base] = ...
[0][caption] = ...
[0][age] = ...
[0][date] = ...
[0][user] = ...
[1][base] = ...
[1][caption] = ...
[1][age] = ...
[1][date] = ...
[1][user] = ...
I'm not figuring out the magic combination of function calls to get the key names back. Bear in mind that each array will be diiferent and have different 2-level key names so it needs to work for all sorts of 2-level arrays.
I'd love to get back a single-dim array of just key names like this:
[0] = base
[1] = caption
[2] = age
[3] = date
[4] = user
I tried array_keys($aData[0]) but that's not working. I know I'm missing something.
TIA