std.strrev

STRINGstd.strrevSTRINGs

Available inall subroutines.

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

Errors

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

Example

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

User contributed notes

BETA

Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)