function composeEmailItems( $items, $join = true, $key = false, $convert = true ) { $textElements = array(); foreach ( $items as $item ) { $textElements[] = eZMail::composeEmailName( $item, $key, $convert ); } if ( $join ) $text = implode( ', ', $textElements ); else $text = $textElements; return $text; }