Explode string by one or more spaces or tabs

$parts = preg_split('/\s+/', $str);

Leave a Comment