I was reviewing some PHP code and found a block of conditional statements that I couldn't understand .
if ($options['mentionbbcode'] & 8) {
$final_rendered .= '<span class="highlight">';
}
if ($options['mentionbbcode'] & 4) {
$final_rendered .= '<i>';
}
if ($options['mentionbbcode'] & 2) {
$final_rendered .= '<b>';
}
what is the difference between those three conditionals .. shouldn't they all return true if $options['mentionbbcode']
is set ?
what is the role of the integer value here ?