Re: [PHP] is there php equiv left() and right() functions?

2002-12-18 Thread Jeff Bluemel
works great

thanks,

Jeff
"Philip Olson" <[EMAIL PROTECTED]> wrote in message
Pine.BSF.4.10.10212190240490.68100-10@localhost">news:Pine.BSF.4.10.10212190240490.68100-10@localhost...
>
> You want explode(), something like:
>
>   list($a, $b) = explode('|', $string);
>
>
> Regards,
> Philip Olson
>
>
> On Wed, 18 Dec 2002, 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
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] is there php equiv left() and right() functions?

2002-12-18 Thread Philip Olson

You want explode(), something like:

  list($a, $b) = explode('|', $string);


Regards,
Philip Olson


On Wed, 18 Dec 2002, 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
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php