JArrayHelper::pivot

Pivots an array to create a reverse lookup of an array of scalars, arrays or objects.