I've got some dynamic form with inputs like
<input type="text" name="admins[0]['email']">
<input type="text" name="admins[1]['email']">
<input type="text" name="admins[2]['email']">
And so on. When I do .serializeArray(); on it, They are treated as separated, different names. I would like output to be
admins
|
-->0
| \-->email => value
-->1
| \-->email => value
-->2
\-->email => value
So "admins" would be single array. Is it possible? (I'm sending data with ajax)
serializeArray()and customize it to suit your needs