$string = "23,string test,90";
ok - notice this string. the string here is going to be split into 3 parts.
what if it has a comma in the middle? i get 4, or more parts.
i can do a regular expression to find out if a string is valid - IE if it has ##,string,##... that isnt a problem.
if its not, i need to replace all the commas i find in the string.
for example - this would be invalid.
$string = "23,i ,being annoying ,will use loads of commas , in my input,90";
it is too late, before you suggest it, to filter on input - because the data has already been collected.