how to separate parts of a string
Author |
Message |
BeepBeepLettuce
|
Posted: Thu Nov 23, 2017 3:53 pm Post subject: how to separate parts of a string |
|
|
so i have a long string of data and the different parts that i need are separated by commas
something like "Beep,Boop,1234567,12,23,34,45,56,67,78"
i want to break this string into an array of strings
array(1) "Beep"
array(2) "Boop"
array(3) "1234567"
array(4) "12"
array(5) "23"
etc
i know how to do this using for loops but i was wondering if there was an easier way to separate everything between the commas
kind of like .split in java |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TokenHerbz
|
|
|
|
|
|
|