Re: Parsing a string
| From: | Simon Garner | Date: | Fri, 23 Feb 2001 23:48:49 +0000 |
| Subject: | Re: Parsing a string | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41380@lists.php.net to get a copy of this message | ||
From: "Todd Cary" <todd@aristesoftware.com>
> Thanks all!!
>
> split() works like a champ!!
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> todd@aristesoftware.com
>
If you're just tokenising by a comma, don't use split(), use explode().
split() accepts a regular expression for the separator, whereas explode()
accepts just a normal string. The difference is, split() is slower.
Cheers
Simon Garner