[imp] Replacing occurences of ';' with ','

Chuck Hagenbuch chuck@horde.org
Tue, 20 Feb 2001 15:59:59 -0500


Quoting hhoffman@r-u-i.com:

> 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

You're ignoring the strstr() in there. is_string() is being applied to result 
of that, not directly to $address_string.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"We have no fuel on board, plus or minus 8 kilograms." -A NASA scientist