Thanks that helped, this is what I used:
if (ereg("&", $field)) $line = explode("&", $field);
else $line = explode("//", $field);
On Thu, 5 Jul 2001 05:29:11
ReDucTor wrote:
><?php
>$line2 = explode("", $field);
>for($i = 0; $i < sizeof($line2); $i++){
> if($line2[$i] == "&")
> $useand = 1;
> else if($line[$i + 1] == "/"){
> if($line[$i] == "/"){
> $useslash = 1;
> }
> }
>}
>if($useand == 1)
>$line = explode("&", $field);
>if($useslash == 1)
>$line = explode("//", $field);
>?>
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]