I want to get the minimum date from the date column of a multidimensional array, but only from rows with keycode of 0001. How would I achieve that? Expected result: 2015-08-01 Answer I would first extract all of the values that have a keycode of 0001 and create a new array of just those dates. Then use the php min()