How can I properly format the values in the $create variable in PHP?

When formatting values in the $create variable in PHP, you can use the number_format() function to properly format numerical values with commas for thousands separators and decimal points. This can make the output more readable and user-friendly.

// Example of formatting values in the $create variable
$number = 1234567.89;
$formatted_number = number_format($number, 2); // Output: 1,234,567.89

$create = [
    'value1' => number_format(1000, 2), // Output: 1,000.00
    'value2' => number_format(5000, 2), // Output: 5,000.00
    'value3' => number_format(7500, 2), // Output: 7,500.00
];