note 6103 modified in split by ronabop
| From: | ronabop@php.net | Date: | Sat, 12 Aug 2000 21:10:15 +0000 |
| Subject: | note 6103 modified in split by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1558@lists.php.net to get a copy of this message | ||
Some one was asking how to do a split on multiple charaters of the same type (Like whitespace or
several tabs). After playing with it for about 15 mins I came up with this to split on whitespace:
<PRE>
$Columns = split("[ ]+", $List[0]);
</PRE>
http://www.php.net/manual/function.split.php