$myString = "9,admin@example.com,8";
$myArray = explode(',', $myString);
print_r($myArray);
$string = implode(', ', $tags);
$string = "'1', '2', '3'";
$string = str_replace("'", '', $string);
$sql = "SELECT * FROM name WHERE id NOT IN ( " . implode(",", explode(',',$string)) . ") LIMIT 10 ";
echo $sql;