I wrote a little script where an item should be bold whenever a certain value is set to 0. But I have the feeling I'm repeating myself... Is there a way to avoid this repeat?
$output .= '<td>';
if ('0' == $value['treated']) {
$output .= '<b>';
}
$output .= $value['from'];
$output .= substr($value['message'], 20);
if ('0' == $value['treated']) {
$output .= '</b>';
}
$output .= '</td>';