> 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_array_flip.md).

# nats\_array\_flip

*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 flip**         | **Any initialized array**      | **None.**                  | **array="my\_array"** |
| [assign](/nats-admin/skins-and-templates/further-reading/template-function-parameters/assign.md) | Store output in this variable | Any valid Smarty variable name | *See output section below* | assign="my\_var"      |

## Output

None. Output stored in the {$array} variable or the variable name you set with the assign parameter.
