Skip to content

string_trim

Hyomoto edited this page Jun 13, 2021 · 6 revisions
Jump To Go Back Arguments

string_trim( string, *chars )

Returns: string

Throws: InvalidArgumentType

Trims unwanted characters from the left and right sides of the string. If chars is not specified tabs and spaces(whitespace) will be removed. If string or chars is not a string, InvalidArgumentType will be thrown.

string_trim( "	  Hello World!		" );
Output: "Hello World!"

Arguments

Name Type Purpose
string string The string to trim
*chars string optional: The characters to trim
Clone this wiki locally