Zachary Shilton 830140157d
website: remove obselete nav data (#10811)
* website: remove obselete sidebar_title frontmatter from docs

* website: bump to latest docs-page

* website: update plugin creation and registration docs

* website: fix broken links
2021-03-31 15:07:00 -04:00

27 lines
611 B
Plaintext

---
page_title: strrev - Functions - Configuration Language
description: The strrev function reverses a string.
---
# `strrev` Function
`strrev` reverses the characters in a string.
Note that the characters are treated as _Unicode characters_ (in technical terms, Unicode [grapheme cluster boundaries](https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries) are respected).
```hcl
strrev(string)
```
## Examples
```shell-session
> strrev("hello")
olleh
> strrev("a ☃")
☃ a
```
## Related Functions
- [`reverse`](/docs/templates/hcl_templates/functions/collection/reverse) reverses a sequence.