Re: Parsing a string
| From: | mjriding at wcoil dot com | Date: | Fri, 23 Feb 2001 17:18:54 +0000 |
| Subject: | Re: Parsing a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41340@lists.php.net to get a copy of this message | ||
Yes... you can use the explode function.
Example:
<?
$parts = explode(",",$item);
?>
if $item where "Hello,There", $parts[0] would = "Hello" and $parts[1]
would = "There".
Thanks,
Mike Ridinger
On Fri, 23 Feb 2001, Todd Cary wrote:
> I have a comma delimited string that I need to parse into an array. Is
> there a PHP function that will do that ?
>
> Many thanks..........
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> todd@aristesoftware.com
>
>
>
>