JBZoo\Utils\Str::stripSpace PHP Method

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
    public static function stripSpace($string)
    {
        return preg_replace('/\\s+/', '', $string);
    }

Usage Example

Example #1
0
 /**
  * Strip spaces
  *
  * @param $string
  * @return string
  */
 public static function stripSpace($string)
 {
     return Str::stripSpace($string);
 }
All Usage Examples Of JBZoo\Utils\Str::stripSpace