Site
Home / Forum / Developers / String split

String split


Posted: 12 Sep 2019 23:54

takieddine
Posts: 41
Joined: Apr 2019

i would like to have little suggestion regarding splitting long string for example like this string :

"strHomeGoalDetails":"69':Own Jonjo Shelvey;61': Adam Lallana;51': Adam Lallana;33': Alberto Moreno;",

is it possible to simply split players one under the other , or each on its own , not together in one string ! thank you

Posted: 13 Sep 2019 11:14

zag
Posts: 1,558
Joined: Oct 2016

Hi,

Yes I totally agree that this is a poor way of doing things, but unfortunately this is how our source data provider formats the field.

I think we need to maintain compatibility with them going into the future and not diverge too much.

Saying that, it should be easy to explode[] the result on the client side.

Posted: 13 Sep 2019 16:30

takieddine
Posts: 41
Joined: Apr 2019

I understand that sir , no problem thank you


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 3 (Total: 3)