0

How to use pdo binding "IN" array of values ?

I don't want to implode array, Is any way to do it ?

 $conditions .= ' OR table.ID IN (' . implode(',', $ipRet) . ') ';

i want to use elegant binding something like this

$conditions .= ' OR table.ID IN :players ';
$command->bindParam(":players", $array, PDO::{array});

Please suggest,

Thanks in advance

TomerM
  • 335
  • 1
  • 7

0 Answers0