fork download
  1. <?php
  2. $array = array(2,3,5);
  3.  
  4. $ids = implode(" OR ID=", $array);
  5.  
  6. $query = "SELECT * FROM tabela WHERE ID=$ids";
  7.  
  8. echo $query;
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
SELECT * FROM tabela WHERE ID=2 OR ID=3 OR ID=5