How can negative numbers be visually highlighted in PHP output?

To visually highlight negative numbers in PHP output, you can use CSS to apply a different style or color to these numbers. One way to do this is by adding a class to the negative numbers and then styling that class in your CSS file.

<?php
$number = -5;

if ($number < 0) {
    echo '<span class="negative">' . $number . '</span>';
} else {
    echo $number;
}
?>
```

In your CSS file, you can define the style for the "negative" class:

```css
.negative {
    color: red;
    font-weight: bold;
}