PHP Bitwise compare values from database with an array
问题 Actually i would like to compare some values in a table with an array and output the key with has equal value of the array. Problem is: the values in the database are bitwise if i am right. Not sure if it is the right explanation in english. Example: and here some example values form the table 1,65,2081,2145,18497,32769 65 contains 64 which is "UR_LEAD" and 1 which is "UR_SWP" Here the array which i would like to compare with: $userrights_array = array( "UR_SWP" => 1, "UR_BUHA" => 2, "UR_AZ"