Collapse string to plain text that all exists on a single long line without destroying words/punctuation.
Usage
// basic usage
$string = $wireTextTools->collapse(string $str);
// usage with all arguments
$string = $wireTextTools->collapse(string $str, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
str | string | String to collapse |
options (optional) | array |
|
Return value
string
WireTextTools methods and properties
API reference based on ProcessWire core version 3.0.236