Skip to main content

Name

join — join stringlist elements into a single string

Synopsis

join { delimiter } { stringlist }

Description

This function uses its first argument as a delimiter to join all the elements in the stringlist and returns the result as a string.

For example, to join MX records with a ",", we could:

$mxs = ec_dns_lookup "messagesystems.com" "mx";
$res = join "," $mxs;

ec_log "Message Systems MX records ${res}";
Was this page helpful?