I have three arrays:
first_name
last-name
rating.
After a user completes a form, the form sends an email with all the array information. For example, if someone signs up 3 names (it could be 1 to x number of names), the email would look something like this (the names are made up so if your name is one of them, it's just a coincidence 🙂.
Anne, David, Joseph
Smith, Jones, Letterman
860, 250, 1500
What can I do to combine the arrays so that the information in first_name[0] gets connected to last_name[0] to rating[0] so that the email sends the information in this format:
Anne Smith 860
David Jones 250
Joseph Letterman 1500
I'm guessing I would have to process these array into a new array and then have the email use the new array. However, I've looked at various php array functions and can't seem to find one that combines arrays the way I've described.
Any suggestions?
Thank you.