Simple PHP Condition help: if($Var1 = in list($List) and $Cond2) - Is this posslbe?

后端 未结 6 2054
挽巷
挽巷 2021-02-20 17:01

Is this a possible function?

I need to check if a variable is existent in a list of ones I need to check against and also that cond2 is true eg

if($row[\         


        
6条回答
  •  天命终不由人
    2021-02-20 17:22

    I have something simpler than that, if it's still possible...

    if(strpos("1,2,3", $row['name']) !== false) && $Cond2) {
      doThis();
    }
    

提交回复
热议问题