3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array_val = array(1, 3, 4, 5); $sql = "DELETE FROM someTable WHERE id NOT IN (" . implode(",", $array_val) . ")"; echo $sql;
based on daVpc
Output for 4.3.0 - 7.1.0
DELETE FROM someTable WHERE id NOT IN (1,3,4,5)