In what year did the US take control of the Philippines from Spain?

In what year did the US take control of the Philippines from Spain?