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 Tue, 21 Apr 2026 04:00:24 +0000