Something like...
PHP Code:
new itemtotal[] = "1,2,3,4,5,6,7,8,9,10";
new iNum, szItem[10][6]; //Items 1,2,3,4...array start from 0.
while(contain(itemtotal, ",") != -1)
{
strtok(itemtotal, szItem[iNum++], charsmax(szItem), itemtotal, charsmax(itemtotal), ','); //Save each item.
}
copy(szItem[iNum], charsmax(szItem), itemtotal); //Save the last item "10" because don't have a comma after it.
__________________