Hello,
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:
a:4:{i:0;s:23:"person1@email.com";i:1;s:23:"person2@email.com";i:2;s:23:"person3@email.com";i:3;s:23:"person4@email.com";}
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,
Shaun