I have a set of strings that are formatted like "A.B.C" and can have varying 'depths'. I.E. one might be just "A" or could be "A.B.C.D".
I want to be able to convert it into the keys for an associative array. So "A" would translate to
$var["A"] = $val;
And "A.B" would translate to
$var["A"]["B"] = $val;