Trim
Less than 1 minute
Trim
Trims whitespace or other characters from the beginning and end of a string.
class TrimMethods
run
public run(string $string, string $characters = '" \n\r\t\v\x00"'): stringParameters
| Parameter | Type | Description |
|---|---|---|
$string | string | The input string |
$characters | string |
Generated by Hazaar API Doc Generator on Fri, 05 Jun 2026 06:08:14 +0000