Available in all subroutines.

Reverses the given string. This function does not support UTF-8 encoded strings.


This function will set fastly.error to EUTF8 if the input string s is UTF-8 encoded.


declare local var.s STRING;
set var.s = std.strrev("abc"); # produces "cba"

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.