<?php$array = array(2,3,5); $ids = implode(" OR ID=", $array); $query = "SELECT * FROM tabela WHERE ID=$ids"; echo $query;
Standard input is empty
SELECT * FROM tabela WHERE ID=2 OR ID=3 OR ID=5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!