you can use the explode() function to create the array, just like this
$mylist="1,12,33,44,53,12"
$myarray=explode(",", $mylist);
now you can use myarray like this
reset($myarray)
while(current($myarray))
{
printf("Value: %d<br>\n", current($myarray));
next($myarray);
}