I couldn't find replies to this question that worked for me. I need to add values to the array
via input
field. I tried with SESSION
but it also didn't work. When inspecting array with print_r
every time array started again with index [0]
thus overwriting former user input, thus not adding new value to the end. But adding new values into array standard way, by declaring new value works perfectly:
$a = array();
$a[] = 5;
$a[] = 'Hello';
etc.
Can you give me some hint?
Thanks in advance Danny