0
Through a form and a single input I need to receive multiple numbers and store these numbers in an array. For example, I type any number in the input and click on the form’s Submit button, with PHP I take this value and store it in the array. But if you do the same process again the previous value will be lost. How do I not lose it ? I tried to put input as text and pass all numbers at once, but I don’t know how to handle space and it’s not the focus using Regex. How can I do it without regex ?
Your question was a little vague. I suggest you put the code you said you tried and show which part was not working as you wanted.
– Isac
I used the explode to take the values separated by space and transform into an array.
– Lone Tonberry