string_reverse

Downloadstring_reverse(str)   Returns the given string with the characters in reverse order.
/*
**  Usage:
**      string_reverse(str)
**
**  Arguments:
**      str     string to be reversed
**
**  Returns:
**      the given string with the characters in reverse order
**
**  GMLscripts.com
*/

{
    var out,i;
    out = "";
    for(i=string_length(argument0);i>0;i-=1) {
        out += string_char_at(argument0,i);
    }
    return out;
}

Click if you've used this script[Please Login]
Projects: 3


comments powered by Disqus