Skip to content
Advertisement

PHP – Array For Loop Not Storing Values

I created an empty array and want to store values from another array coming from a form. I am getting only the last value stored in the array, it is for some reason overlapping the values that need to be stored in a multidimensional array.

JavaScript

The Output I am getting is 0 – Array 1 – Array and so on … not the actual values that should have been stored. Please help me to fix my mistake !

Advertisement

Answer

JavaScript

Feel free to ask if have any issues.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement