MySQLで配列をWHERE句に指定する

sql
$st = $conn->query("select * from table_name where key in (" . implode(',', $arr) . ")");

関連記事