Showing posts with label bind. Show all posts
Showing posts with label bind. Show all posts

Tuesday, June 5, 2012

PHP PDO: Can I bind an array to an IN() condition?


I'm curious to know if it's possible to bind an array of values to a placeholder using PDO. The use case here is attempting to pass an array of values for use with an IN() condition. I'm not very good at explaining, so here's some psuedocode to demonstrate... I'd like to be able to do something like this: