Suppose I send an array of emails. The emails is an array containing john@test.com, tom@test.com, jerry@test.com....etc
From the receiving side I am trying retrieve the emails.
foreach ($_POST['emails'] as $i => $value) {
echo "emails[$i] is $value<br />";
}
Is this the correct way to do it? for the foreach loop, would it iterate until all the data out of emails array finished?