What are some alternative ways to format numbers for better readability in PHP, aside from using punctuation like periods or commas?

When working with large numbers in PHP, it can be helpful to format them in a way that is more readable for users. One alternative way to format numbers for better readability is to use scientific notation, which represents numbers in terms of a coefficient and a power of 10. This can make it easier to understand the magnitude of the number without needing to count digits.

$number = 1234567890;
$formatted_number = sprintf('%.2e', $number);

echo $formatted_number; // Output: 1.23e+9