note 6103 deleted from function.split by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 02:13:04 +0000 |
| Subject: | note 6103 deleted from function.split by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20254@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>