two sample groups
enter image description here
group to create
enter image description here
How to make a group $gabung the example above from 2 arrays ($array1 and $array2) where array1 becomes the group of the string group in array2
and
Thank you for the help.