I have an array like this:
[0] => [basketball][player]
[1] => [basketball][threes][player]
[2] => [basketball][home][leaders][player]
[3] => [basketball][away][leaders][player]
I want to translate each element into a reference to a certain element in an associative array:
$post['basketball']['player']
$post['basketball']['threes']['player']
etc.
Is there any way to automatically translate the former into the latter? It would be super convenient if so, and presumably super inconvenient if not, so I hope there's a way, but I don't know what it might be.