Jump to content

Displaying thousands with a comma!


glenelkins

Recommended Posts

I actuall did it like this:

[code]
$tmp_price = $properties['price'];
$price = chunk_split("$tmp_price", 3, ",");
echo "£" . $price;
[/code]

But now i have a comma at the end of the string, how can i remove this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.