Source Code:
(back to article)
<?php $arr = [1, 2, 3, 4]; $in = implode(',', $arr); $sql = "SELECT * FROM table WHERE column IN ($in)";
Result:
Report an issue