I couldn't find it on Google, or used the wrong keyword. How can i merge a variable value "[contestantvariable_number-fieldname]" to a multidimensial array?
Example of the array:
array (
[contestant1-gender] => M
[contestant1-first-name] => Wyatt
[contestant1-last-name] => Heath
[contestant1-occupation] => Ipsa architecto vol
[contestant1-email] => dipuxo@mailinator.com
[contestant1-phone] => +1 (992) 741-8123
[contestant2-gender] => M
[contestant2-first-name] => Leonard
[contestant2-last-name] => Acosta
[contestant2-occupation] => Aut sunt qui offici
[contestant2-email] => sajomogylu@mailinator.com
[contestant2-phone] => +1 (462) 687-8393
[department] => In mollitia impedit
[street] => Sed error magnam obc
[number] => 41
[bus] => In iste ut perspicia
[postalcode] => Commodo impedit vol
[city] => Ad iure veniam veli
[country] => nl
)
To something like this:
Array (
[0] => contestant (
[0] => gender ( )
[1] => first-name ()
)
[1] => contestant (
[0] => gender ( )
[1] => first-name ()
)
[2] => contestant (
[0] => gender ( )
[1] => first-name ()
)
)