stripSpace() 공개 정적인 메소드

Strip all witespaces from the given string.
public static stripSpace ( string $string ) : string
$string string The string to strip
리턴 string
예제 #1
0
파일: Filter.php 프로젝트: jbzoo/utils
 /**
  * Strip spaces
  *
  * @param $string
  * @return string
  */
 public static function stripSpace($string)
 {
     return Str::stripSpace($string);
 }
예제 #2
0
파일: StringTest.php 프로젝트: jbzoo/utils
 public function testStrip()
 {
     $input = ' The quick brown fox jumps over the lazy dog ';
     $expect = 'Thequickbrownfoxjumpsoverthelazydog';
     is($expect, Str::stripSpace($input));
 }