if !isset multiple OR conditions

前端 未结 8 1227
一整个雨季
一整个雨季 2021-01-04 06:51

I cannot get this to work for the life of me, it is PHP.



        
8条回答
  •  北荒
    北荒 (楼主)
    2021-01-04 07:20

    // if any of this session is set then
    if (isset($_SESSION['tusername']) || isset($_SESSION['student_login'])) {
      it will return true;
    } else {
      it will return false;
    }
    

提交回复
热议问题