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

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

Reply via email to