trimRight

Returns a string with whitespace removed from the end of the string.

Description

static trimRight(string|null $chars)

Supports the removal of unicode whitespace. Accepts an optional string of characters to strip instead of the defaults.

Parameters

  • string|null $chars
    Optional string of characters to strip.

Return Value

static