below is my code it is no working as I thought it would though, I get no errors but when I try to echo out $arr_chk_privacy to see what it says it just shows "array"
$arr_chk_privacy = $_POST['chk_privacy'];
$cnt_chk_privacy = count($arr_chk_privacy);
if ($cnt_chk_privacy > 0) {
if (in_array(3, $arr_chk_privacy, true)) {
$_SESSION['hideonline'] = 1; //hide online status
$sql_delete="DELETE FROM friend_online WHERE userid='$info[auto_id]'";//delete from online table
executeQuery($sql_delete);
}else{
$_SESSION['hideonline'] = 0; //show online status
}
$chk_privacy_ids = implode(",", $arr_chk_privacy);
}