fork(2) download
  1. <?php
  2.  
  3.  
  4. $ref = array('123', '654', '555');
  5.  
  6. $in = '(' . implode(',', $ref) .')';
  7.  
  8. echo 'SELECT * FROM tabela_itens WHERE ref IN ' . $in;
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
SELECT * FROM tabela_itens WHERE ref IN (123,654,555)