I have a string that has comma separated values. How can I count how many elements in the string separated by comma. e.g following string has 4 elements
string = "1,2,3,4";
I have a string that has comma separated values. How can I count how many elements in the string separated by comma. e.g following string has 4 elements
string = "1,2,3,4";