I have an array named $row like this:
[multifield] => Array
(
[pipelines_users] => Array
(
[users_id] => Array
(
[0] => 327
[1] => 123
)
)
)
and I want to access the users_id array but only have the string multifield[pipelines_users][users_id]
But echoing $row[$string] uses the whole string as the key and doesn't parse the array notation of the square brackets.
I've tried: $row{$string} and several other incorrect syntax with no luck.
The string array notation will have variable keys so I can't hard code here.
eval, then you will have to do this using references - split the string into the sinlge keys, get the reference to the first level element via its key, and then use that reference to get the next level element, etc.