What is the best way to format numbers in PHP to avoid scientific notation?

When working with large numbers in PHP, they may be automatically converted to scientific notation, which can be undesirable in certain situations. To avoid this, you can use the `number_format()` function in PHP to format numbers without scientific notation. This function allows you to specify the number of decimal places and the thousands separator, providing more control over how the number is displayed.

$number = 1234567890.12345;
$formatted_number = number_format($number, 2, '.', ',');
echo $formatted_number; // Output: 1,234,567,890.12