You can input values in the Textbox, separated by commas, each of them is a single value afterwards.
In my foreach loop I want to create an email for each user that got type in on the top for example: email@example.com
If you have 5 users typed in on the top, you get 5 emails, so far so good BUT each Email needs to be accesible after the loop ends, so I need a variable for each Mail like $Mail1, $Mail2, $Mail3 and so on...
And now to an even more complicated step:
I don't want to set the max number of persons typed in on top to like 5, it needs to be adjustable, so on Example no.1 you only type in 2 name and on example no. 2 you type in 6 names = it varies each time
So I need to figure out, how many Mails got created, catch them after the loop and combine them into 1 variable ($AllMails)