Jump to content

Wrap Brackets around every comma?


Monkuar

Recommended Posts

30|24|17,5|4|20,15|13|33,15|22|33,9|20|22

 

Let's say my output is that,

 

Realistically every 3numbers is 1 Ticket they are seperated by a "," (comma)

 

I want to wrap parenthesis around them so the output would look like this

 

(30|24|17) (5|4|20) (15|13|33) (15|22|33) (9|20|22) 

 

Now would I have to use regex.. or not cuz regex is extremely difficult

 

Thanks  :confused: :confused: :confused:

 

 

Link to comment
https://forums.phpfreaks.com/topic/255728-wrap-brackets-around-every-comma/
Share on other sites

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.