Convert an array or object to a single dimensional associative array with dot notation.
The array or object to dot-notate
An array of keys to retain as objects
The dot-notated object
Convert an array or object to a single dimensional associative array with dot notation.