stripSpace() public static method

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