User inputs a comma separated string and i d like to make a an associative array out of it as follows : Input : 4,3,3,2,2 Output : Array{"0"=>4,"1"="3","2"=>3,"3"=>2,"4"=>2}
I can create an array by input.text.split(",");
But I d like to make it an associative array as above, how to do this?
Thanks.