Dbal.sql in set

dbal::sql_in_set –– Builds in set string for use within an sql_query.

Description
Builds IN, NOT IN, = and <> sql comparison string. Defined in dbal class. The array of parameters and values is processed through the _sql_validate_value function which takes care of proper casting and escaping which means there is no need to use sql_escape for the various elements of the array.
 * 1) string sql_in_set ( String $column, Array $array [, Bool $negate [, Bool $allow_empty_set ]] )

Return Values
Returns a string to be used in the WHERE clause of an SQL Query

Example #1
$sql_in = array(2, 58, 62);

$sql = 'SELECT * FROM '. USERS_TABLE. '	WHERE '. $db->sql_in_set('user_id', $sql_in);