Scripting with Multi value fields

If you want to get all the data as a single string, use
$meta_sep() with a suitable, unique separator.
To transform that string back to multi-value fields, use \\ as separator.

see also here: