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"'): stringReturns: string
Parameters
| Parameter | Type | Description |
|---|---|---|
$string | string | The input string |
$characters | string |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000