I want to achieve this in php - but is it possible and if so, how?
An Array of two elements, the first is an Array of nested arrays (contents and depth is unknown, you only know that each Array has an id) and the second is an Array of references to every Array in the first element. Something like this:
$all = Array (
'nested_arrays' => Array(
'id0' => Array(
'id8' => Array(
...
)...
)...
'references' => Array(
'id0' => (reference to Array id0),
'id8' => (reference to Array id8),
...
)
)
Then you could access every Array without knowing where it is, like
$all['references']['id8']
and you could even do
unset($all['references']['id8'])
...yes, or could you?