trim

Removes whitespace from the start and end of the string.

Description

static trim(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