Strip all witespaces from the given string.
public static stripSpace ( string $string ) : string | ||
$string | string | The string to strip |
Résultat | string |
/** * Strip spaces * * @param $string * @return string */ public static function stripSpace($string) { return Str::stripSpace($string); }
public function testStrip() { $input = ' The quick brown fox jumps over the lazy dog '; $expect = 'Thequickbrownfoxjumpsoverthelazydog'; is($expect, Str::stripSpace($input)); }