Jump to content

Trim a comma along with several other characters.


bluecubic

Recommended Posts

I tried to encapsulating the comma in quotes to see if that would work...

Thanks for the quick reply.  That code unfortunately didn't work.  I also just tried
[code]echo trim($orders['order_total'], ',');[/code] and it didn't filter out the comma...

Example:

input:  [code]<b>$1,000.00</b>[/code]

desired output: 1000.00

Thanks.

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.