Re: is there php equiv left() and right() functions?
| From: | Jeff Bluemel | Date: | Thu, 19 Dec 2002 03:07:27 +0000 |
| Subject: | Re: is there php equiv left() and right() functions? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128797@lists.php.net to get a copy of this message | ||
thanks...
Jeff
"Matthew Gray" <Matthew.J.Gray@uwrf.edu> wrote in message
news:20021219024144.98062.qmail@pb1.pair.com...
> Jeff Bluemel wrote:
>
> > I have a string that will look like the following;
> >
> > data1|data2
> >
> > now - I need to put data1 in a variable, and data2 in another variable.
> > I've found the functions strlen, and strpos, but I can't figure how to
> > grab this data.
> >
> > thanks,
> >
> > Jeff
>
> Try
>
> list($var1, $var2) = explode('|', 'data1|data2');
>
> Matt