Question: A question I think pretty simple but I never had to do it in swift. it's pretty simple PHP but here I do not find my solution on the internet.

ask: I would like to add a variable in this chain of character. Instead of 123, I would need a variable.

```
final let urlString = "https://ozsqiqjf.preview.infomaniak.website/empdata_123.json"

result = final let urlString = "https://ozsqiqjf.preview.infomaniak.website/empdata_VARAIBLE.json"

```

Can you give me the syntax in swift3 or direct me to a good tutorial.

Answer: 
```
let variable = 123
final let urlString = "https://ozsqiqjf.preview.infomaniak.website/empdata_\(variable).json"

```

**\(variable)** is what you need

**OR** 

use string formatting

```
let variable = 123
final let urlString = String(format:"https://ozsqiqjf.preview.infomaniak.website/empdata_%d.json", variable)

```
```
let variable = 123
final let urlString = "https://ozsqiqjf.preview.infomaniak.website/empdata_" + variable + ".json"

```

or

```
final let urlString = "https://ozsqiqjf.preview.infomaniak.website/empdata_\(variable).json"

```