Let's say I have a 3D array and I don't want to access it through the key names.
Is there a way to access to the value (2) without having to use a foreach loop?
array (size=1)
'type' =>
array (size=1)
'registered' => string '2' (length=1)
It is not possible without a loop.
You could try serializing your array and working with the serialized structure. Not saying this is good or even viable, but it might do what you want.
You can find out more about serialize here: http://php.net/manual/en/function.serialize.php
print_r()output of your array?array_keys($array)to get the keys, but foreach is a better solution.