if($bbuserinfo['usergroup']==idnumbersofgroup) { print "hey your in this group"; } else { print "your not in the group that is need"; }