check if variable empty

前端 未结 12 1325
旧时难觅i
旧时难觅i 2020-11-27 14:00
if ($user_id == NULL || $user_name == NULL || $user_logged == NULL) {
    $user_id = \'-1\';
    $user_name = NULL;
    $user_logged = NULL;
}
if ($user_admin == NUL         


        
12条回答
  •  暖寄归人
    2020-11-27 14:16

    here i have explained how the empty function and isset works please use the one that is appropriate also you can use is_null function also

    
    

提交回复
热议问题