Equity mutual funds witnessed a net inflow of Rs 5,988 crore in June, making it the fourth consecutive monthly inflow amid a rally in stock markets.