Reading comma separated variable into other variables in shell script

Hi,
In shell script, I have a variable var = xyz, inn, day, night, calif ....n and I would like to read them in to var1 = xzy, var2 = inn, var3= day, var4 = night....var[n].
probably in a loop. I would like to read the variables until end of the line. Comma is the delimiter and there's no comma at the end.

For example:

var = inn, day, grocery

I would like to read it like

var1 = inn, var2 = day, var3 = grocery

Another case:
var = day, grocery, store, road, highway

I would like to read it as

var1 = day, var2 = grocery, var3 = store, var4 = road, var5 = highway

 
#!/bin/ksh
IFSsave="$IFS"
IFS=,
var="day,grocery,store,road,highway"
set $var
typeset -i i
i=1
while [ i -lt $# ]; do
    eval var$i=\$$(echo $i)
    eval echo "var$i=\$var$i"
    i=i+1
done
IFS="$IFSsav"

Arrays are nice for this sort of stuff (you can loop through them with counters, etc):

In bash:

#!/bin/bash
var=day,grocery,store,road,highway
IFSsave="$IFS"
IFS=,
vars=( $var )
IFS="$IFSsave"
for((i=0;i<${#vars[@]};i++))
do
   echo var$i=${vars}
done

In ksh:

#!/bin/ksh
var=day,grocery,store,road,highway
IFSsave="$IFS"
IFS=,
set -A vars $var
IFS="$IFSsave"
i=0
while [ $i -lt ${#vars[@]} ]
do
   echo var$i=${vars}
   let i=i+1
done

I'm using bash. I tried your code. but the var1 reads var0=day instead of just day