Functions between cilia and microvilli

What are the differences in functions between cilia and microvilli? What cells would have each?