You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

string_reverse

string_reverse(str)
Returns a given string with the characters in reverse order.
COPY/// string_reverse(str)
//
//  Returns a given string with the characters in reverse order.
//
//      str         string to be reversed, string
//
/// gmlscripts.pro/license
{
    var out,i;
    out = "";
    for(i=string_length(argument0); i>0; i-=1) {
        out += string_char_at(argument0,i);
    }
    return out;
}

Contributors: xot

GitHub: View · Commits · Blame · Raw