Hello, I have this code and I want to correct it because it deletes all same value and I want to delete one value
$rows = "944,1001,1001,3946";
$sesto = explode(",",$rows);
$arr = array_diff($sesto,array(1001));
$comma_separated = implode(",", $arr);
echo $comma_separated;
i want to be 944,1001,3946