Heat oil in a deep saucepan, fry onion and garlic until fragrant. Add ingredients (A) and stir-fry well.
Stir in ingredients (B); mix. Add rice, water, milk and pandan leaves.
Bring to a boil uncovered, then lower the heat and simmer rice covered until all the water is absorbed and the rice is cooked and fluffy. Allow to stand for 10 minutes before serving with any curry of your choice.