Can you explain again exactly what you want with better examples. I get all of what your saying but dont get exactly what your looking for.
Provides a few array b4 and afters or something.
Okay I am going to have a random guess firstly and hope this is what you want.
Okay we imagine an array called $content. The piece of data we want could be in any of the following
$content[0]
$content[0][0]
$content[0][0][0]
$content[0][0][0][0]
$content[0][0][0][0][0]
But all the keys you know. Firstly we assume that all the keys are 0 and we want to follow all of the 0 keys until we find a key that is not an array?
Then we can do the following
function array_flow($array)
{
if (is_array($array[0]))
{
array_flow($array[0]);
}
else
{
return ($array[0]);
}
}
Which can easily be used as below...
echo array_flow($content);
Now if we assume that the array key isnt always 0 but always remains constant then we can add to the original function as below...
function array_flow($array,$key)
{
if (is_array($array[$key]))
{
array_flow($array[$key]);
}
else
{
return ($array[$key]);
}
}
And using it would differ slightly....
echo array_flow($content,1);
In the new example we use 1 as the key so we could find the value of
$content[1] all the way to $content[1][1][1][1][1] and beyond.
I really hope this is what you are looking for. If not you can contact me via IM or something...
All my contact info can be found here
http://profiles.web-starters.net/monkey56657