Documentation

TrimEx

function
TrimEx(
 str,
 symbol,
 side= = "both",
);

The function deletes the symbol'$symbol' from the string '$str' from the side '$side'. This function deletes not more than one symbol from each side.

Function parameters

Parameter Description
str String, from which the deleting is performed
symbol Symbols to be deleted
side From which side the deleting is performed:
  • both - at the beginning and end of the string;
  • left - at the beginning of the string;
  • right - at the end of the string.


© «Bitrix24», 2001-2024
Up