Search found 2 matches

by jonnyenglish89
Sun Aug 27, 2017 2:28 pm
Forum: Regex
Topic: Split string and consolidate into an array
Replies: 3
Views: 25778

Re: Split string and consolidate into an array

thanks, I can use explode and count but I get stuck on “Ember of Kytos #2” and “Aerial Ocelot #5” - How would I add the #2 to Ember of Kytos and the #5 to Aerial Ocelot to get the correct values?
Should I move the topic to the general php chat?
by jonnyenglish89
Sun Aug 27, 2017 8:02 am
Forum: Regex
Topic: Split string and consolidate into an array
Replies: 3
Views: 25778

Split string and consolidate into an array

Hey guys, is it possible to consolidate a string like this: Octane Optimized, Yurich's Nexus, Ember of Kytos, Aerial Ocelot, Ember of Kytos #2, Aerial Ocelot #5, Ember of Kytos Into this: {"Octane Optimized":"1","Yurich's Nexus ":"1","Ember of Kytos"...