PHP: Testing whether three variables are equal

前端 未结 5 2152
情歌与酒
情歌与酒 2021-02-06 21:43

I\'ve never come across this before, but how would you test whether three variables are the same? The following, obviously doesn\'t work but I can\'t think of an elegant (and co

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-06 22:06

    if ($select_above_average === $select_average
        && $select_average === $select_below_average) { }
    

提交回复
热议问题