rtrim()

Scalar. Trims spaces from the right of a string.

Syntax

rtrim ( string )

Parameters

string

A string.

Usage

Trims the spaces from the right side of the string. The function takes in a string as its argument, and returns a string.

Example

rtrim ('examplestring ') returns 'examplestring'.