Add new flag / flag_out logick
This commit is contained in:
@@ -385,7 +385,13 @@ class Helper {
|
||||
}
|
||||
return $flag;
|
||||
}
|
||||
|
||||
|
||||
public static function isBitOn($flag,$n){
|
||||
$result = +$flag & (1 << +$n) ;
|
||||
$result = $result > 0;
|
||||
return $result ;
|
||||
}
|
||||
|
||||
|
||||
public static function generateRandomString($length = 6,$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWX' ) {
|
||||
$charactersLength = strlen($characters);
|
||||
|
||||
Reference in New Issue
Block a user