Array Key By

Key an array by the given key. Supports dot notation for nested keys.

Parameters
Array
Key