I have a set of integers that I would like to change to a US money format.
Here are some examples of what I would like to do. The first number is what is in the dat
Have you looked at money_format()? You'll just need to divide your values by 100 before using them w/this function.
Also, you could consider number_format() as well.
You could use number_format()
number_format((4500/100), 2);
There's also money_format(), but it's slightly more complicated.
Take a look at money_format, which formats a number as a currency string.
$number=4500;
$money='$'.round($number/100,2);