Buat array dari string dengan koma php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
Filthy Fly
$myString = "9,[email protected],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;