关键代码:define("READ", 1);define("WRITE", 2);define("DELETE", 4);define("UPDATE", 8);// 赋予权限$permission = READ|WRITE;//判断权限if( READ & $permission ){ echo "ok";}