how can I trim the value of a variable down to two decimal places? eg $number = 34.567 to $number = 34.57
Hi,
try this: $number = 34.567; echo round($number, 2);
firemouse2001
Alternately use number_format()