Lets pretend I've got some SQL and variables such as:
$number = 5;
And my PDO sql is:
SELECT * FROM things where ID = :number
Except, number is actually an array such as:
$number = array(1,2,3);
Which doesn't work out at all for
SELECT * FROM things where ID in ( :number )
How can I accomplish this with PDO? Presently I'm looping through the array, type-casting to int, and injecting the string to the SQL before I do any PDO binding on it.