Re: Parsing a string with a delimeter
| From: | Kal Amry | Date: | Wed, 17 Oct 2001 05:01:19 +0000 |
| Subject: | Re: Parsing a string with a delimeter | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71296@lists.php.net to get a copy of this message | ||
Tell you what, it worked pretty well as I wanted.
Thanks,
"Trygve Aasjord" <trygve@webtraders.no> wrote in message
news:3BCD0816.6000304@webtraders.no...
> list($var1, $var2, $var3, $var4) =
> explode("|", "100|SomeName|AnotherName|45");
>
> David Robley wrote:
>
> > On Wed, 17 Oct 2001 13:12, Kal Amry wrote:
> >
> >>If I have
> >>
> >>100|SomeName|AnotherName|45
> >>
> >>Is there an easy way to parse the data in an array or whatever - I mean
> >>to have something like this:
> >>
> >>100 in var1
> >>SomeName in var2
> >>Anothername in var3
> >>45 in var4
> >>
> >>Thanks,
> >>
> >
> > explode()
> >
> >
>