> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/nats-admin/skins-and-templates/further-reading/template-functions/nats_build_array_by_reference.md).

# nats\_build\_array\_by\_reference

*Article Topics:* [*Smarty*](/getting-started/common-topics/smarty.md)*,* [*Customization*](/getting-started/common-topics/customization.md)

## Parameters

(*Required parameters in **bold**)*

| Parameter  | Description                | Possible Values                  | Default Value | Example                 |
| ---------- | -------------------------- | -------------------------------- | ------------- | ----------------------- |
| **array**  | **The array to duplicate** | **Any initialized Smarty array** | **None.**     | **array="old\_array"**  |
| **assign** | **The array to create**    | **Any valid Smarty array name**  | **None.**     | **assign="new\_array"** |

## Output

No output. Values of the old array stored in the new array.

## Notes

None.
