Remove or replace all whitespace from string
Available since version 3.0.105.
Usage
// basic usage
$string = $sanitizer->removeWhitespace(string $str);
// usage with all arguments
$string = $sanitizer->removeWhitespace(string $str, $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
str | string | String to remove whitespace from |
options (optional) | array, string | Options to modify behavior, or specify string for
|
Return value
string
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236