Finish flagout

This commit is contained in:
2016-10-01 18:49:51 +02:00
21 changed files with 450 additions and 32 deletions

View File

@@ -396,7 +396,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);