Say a variable contains this:
I want to drop an if statement, checking each of them.
Code:
if ($bbuserinfo[usergroupid]=="5" OR $bbuserinfo[usergroupid]=="6" OR $bbuserinfo[usergroupid]=="7" OR $bbuserinfo[usergroupid]=="10" OR $bbuserinfo[usergroupid]=="56" OR $bbuserinfo[usergroupid]=="63") {
How would I make it so that all of that is combined into something like
Code:
if ($bbuserinfo[usergroupid]==$variable) {
Where variable has all of those values mentioned above and actualy work?