---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, PMD Scripting, Scripts]
nav: wcp_docs
parent_url: /wcp_docs/
title: join (array, separator)
layout: subsection
---

## <a id="section_m3p_myb_5db"></a>Description

Returns a string containing the elements of the specified array. The specified separator string separates each element.

## <a id="section_cyq_j1m_zsb"></a>Return Type

`String`

## <a id="section_dz5_pwg"></a>Namespace Function Syntax

```
string:join(array, separator)
```

<table><thead><tr><th>Parameter</th><th>Description</th></tr></thead><tbody><tr><td>array</td><td>The input array.</td></tr><tr><td>separator</td><td>The separator string.</td></tr></tbody></table><br/>

<b>Example</b>

`string:join(['A', 'B', 'C'], '-')`

Returns `'A-B-C'`

