pins_to_emails -- Turn an array of member pins into a string of comma-separated email addresses.
This function takes an array containing member pins and retrieves the member's email addresses from the database. The email addresses are checked for validity before being added to the string.
Names are not included in the string of returned emails. The only data returned is the actual email addresses, separated by commas.
pins_to_emails (array (1, 2, 3, 4)) /* Returns a comma-separated string of the first four members' email addresses, provided the addresses listed in their profiles are valid. */