I have a php script, which looks up a translation for a given word:
$word = "the";
$db = new PDO("sqlite:words.sqlite");
$sth = $db->prepare("SELECT word, translation FROM words where word = ?");
$sth->execute(array($word]));
However, I wish to replace the string variable $word with an array called $words and look up the translations for a set of words. Can I execute a single statement to retrieve all of these values? How is this implemented in terms of code?