I need help again, I have the following problem.
I have a string of words with the commas between each word, I am able to remove the commas in the string, but I am getting an error when I try to take the words an create an array.
Give this a try:
$string = 'one,two,three,four';
$words = split( ',', $string );
-Rich
Thank you very much, your help put me on the right track, split didn't work but when I tried explode it did...
$string = 'one, two, three, four'; $array = explode (", ", $string);
Ah....well, split() would have worked as well. I didn't realize they were seperated with a comma and a space. If you change the split() statement to match your current explode() statement, it will work the same.
Glad I could help!