Return Value From Array Using Value of Another Key The following function can be used to return value from an array by giving another key and value.