In the context of adding a plus sign before a number for human readability, what are the best practices in PHP?

When displaying numbers in a user interface, adding a plus sign before positive numbers can improve readability and clarity for users. In PHP, this can be achieved by checking if the number is positive and then appending a plus sign before displaying it.

$num = 10;

if ($num > 0) {
    $num = '+' . $num;
}

echo $num; // Output: +10