pins_to_emails

(/rs/public/functions.php)

pins_to_emails -- Turn an array of member pins into a string of comma-separated email addresses.

Description

string pins_to_emails ($pin_array)

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.

Examples

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. */

Related Functions

None.

Dependencies

validEmail

Function Index