removeRight

Returns a new string with the suffix $substring removed, if present.

Description

static removeRight(string $substring)

Parameters

  • string $substring
    The suffix to remove.

Return Value

static
String without the suffix $substring.