What are the parameters of the number_format function in PHP for formatting prices?

When formatting prices in PHP using the number_format function, there are a few parameters that can be used to customize the output. The function takes four parameters: the number to be formatted, the number of decimal places to display, the decimal point character, and the thousands separator character. By specifying these parameters, you can control how the price is displayed, including the number of decimal places and the use of commas for thousands separators.

$price = 1234.56;
$formatted_price = number_format($price, 2, '.', ',');
echo $formatted_price;