I have this if else block code if($_POST[item]==All){        $notificatioSetting->AllNotification=$_POST[status];    }    else if($_POST[item]==Accept){        $notificatioSetting->AcceptTrackRequest=$_POST[status];    }    else if($_POST[item]==Deny){        $notificatioSetting->DenyTrackRequest=$_POST[status];    }this condition continues for almost 12 another else if condition. Beside this and switch, is there a better way?
Rewrite conditional statement
php