Replacing occurences of ';' with ','

hhoffman@r-u-i.com hhoffman@r-u-i.com
Sat, 17 Feb 2001 11:24:35 -0800 (PST)


Hey All,
  I know that this has been debated before but I'm looking for a little help if 
anyone can. I'm using Imp 2.2.3 and in compose.php3 I'm looking to change the 
following (I think)

line 24-26
if (!is_string(strstr($address_string, '>'))) { 
 $address_string = trim(strtr($address_string, ';,', '  '));
 $address_string = preg_replace('|\s+|', ', ', $address_string);

This seems to say (I'm not a programmer) that if $address_string is not a 
string then return everything after the ">". Otherwise, do the whitespace 
trimming and replacing on said string.
How can I do replacing on $address_string if it's not a string, (ie -> I want 
to convert semicolons to commas for use of personal group sending). Am I even 
on target with looking at this or should I look elsewhere?
Thanks,
Harry

---------------------------------
Harry Hoffman
Manager Information Technology
Restaurants Unlimited, Inc.
206.634.3082 x. 270
---------------------------------