/**
 * Strip all whitespaces from the given string.
 *
 * @return self Returns instance of The Strings class.
 */
public function stripSpaces(): self

Examples

$string = Strings::create('SG-1 returns from an off-world mission')->stripSpaces();

echo $string;

The above example will output:

SG-1returnsfromanoff-worldmission

Getting Started

Methods