A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.cfengine.com/latest/reference-functions-string_reverse.html below:

string_reverse - CFEngine 3.26 Docs

Prototype: string_reverse(data)

Return type: string

Description: Returns data reversed.

Arguments:

Example:

code

body common control
{
      bundlesequence => { "example" };
}

bundle agent example
{
  vars:
      "reversed"
      string =>  string_reverse("abc"); # will contain "cba"
  reports:
      "reversed abs = $(reversed)";
}

Output:

code

R: reversed abs = cba

History: Introduced in CFEngine 3.6

See also: string_head(), string_tail(), string_length().


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4