[PHP] Re: determine which string is longer and then what is different in that string

2007-08-26 Thread Robert Keizer
Okay, why not try somthing like this: $string1 = 1,2,3,4,5,6,7,8; $string2 = 2,4,6,8,10; $ary1 = implode(,,$string1); $ary2 = implode(,,$string2); $num1 = ''; $num2 = ''; foreach($ary1 as $num){ $num1 .= $num; } foreach($ary2 as $num){ $num2 .= $num; } that would get the strings into

[PHP] Re: determine which string is longer and then what is different in that string

2007-08-26 Thread Bill Guion
At 11:11 PM -0700 8/25/07, Richard Kurth wrote: I am trying to find out which string is the longest and then find out what is different between the two string. Sometimes String 2 is longer than String 1 The script below works sometimes but not all the time. Is there a better way to do this or

[PHP] RE: determine which string is longer and then what is different in that string

2007-08-26 Thread Richard Kurth
I am trying to find out which string is the longest and then find out what is different between the two string. Sometimes String 2 is longer than String 1 The script below works sometimes but not all the time. Is there a better way to do this or tell me what is wrong with the

[PHP] RE: determine which string is longer and then what is different in that string

2007-08-26 Thread Bill Guion
At 6:00 PM -0700 8/26/07, Richard Kurth wrote: I am trying to find out which string is the longest and then find out what is different between the two string. Sometimes String 2 is longer than String 1 The script below works sometimes but not all the time. Is there a better way to do

Re: [PHP] RE: determine which string is longer and then what is different in that string

2007-08-26 Thread Richard Lynch
On Sun, August 26, 2007 8:00 pm, Richard Kurth wrote: I am trying to find out which string is the longest and then find out what is different between the two string. Sometimes String 2 is longer than String 1 The script below works sometimes but not all the time. Is there a better way to do