Function bitInValue
check a bit is set in value, support also return of a MySQL SET field
Located at
tools.lib.php
Parameters summary
mixed |
$val |
|
mixed |
$bit |
|
mixed |
$return = true |
=> default: true, if you use a string as return value you get it back if the condition is true (if the bit is in the value, otherweise ""), on a numeric value you get the number back or 0 if the condition fails |
Return value summary
mixed
|
mixed |