<prompt> Answer this question truthfullyWhat antifungal medication can cause both hypomagnesemia and hypokalemia?  <response>: <reason> Amphotericin B is the antifungal agent that can result in both hypomagnesemia and hypokalemia. 