Строка запятой в массиве
// Converts comma seperated values into array
$numbers = "one,two,three,four";
$numbersArray = explode(",", $numbers);
devasghar
// Converts comma seperated values into array
$numbers = "one,two,three,four";
$numbersArray = explode(",", $numbers);
SELECT * FROM name WHERE id NOT IN ( 1, 2, 3) LIMIT 10
$string = "'1', '2', '3'";
$string = str_replace("'", '', $string);
$sql = "SELECT * FROM name WHERE id NOT IN ( " . implode(",", explode(',',$string)) . ") LIMIT 10 ";
echo $sql;
$string = "'1', '2', '3'";
$string = str_replace("'", '', $string);
$sql = "SELECT * FROM name WHERE id NOT IN ( $string ) LIMIT 10 ";