Str::beforeEnd()
Removes the given substring or character only from the end of the string
Parameters
Name | Type | Default |
---|---|---|
$string * | string |
– |
$needle * | string |
– |
$caseInsensitive | bool |
false |
Return type
string