I have a form which includes a list field to gather a group of friend's email addresses.
I'm then hoping to use the gform_after_submission hook to send an email to each address submitted through the field.
If the list field has an ID of 2 then I can grab the data submitted through the list field in my hook by using:
$friends_emails = $entry['2'];
But this gives me something like the following:
What is the pattern and so what would be the syntax for me to grab the email addresses out of this string?
Many thanks for your help,