Hey I have a php array adn for each value of array I want to run a query and get the result.

How I can use foreach here pls guide with some example.