> Untested, very crude:
>
> <?php
> $maxlen = max(strlen($text1), strlen($text2));
> for ($i = 0; $i < $maxlen; $i++){
> if (@$text1[$i] == @$text2[$i]) echo @$text1[$i];
> else @echo "<font color=red>$text1[$i]|$text2[$i]</font>";
> }
> ?>
donot you think you program will just bring the server to its foot ,if the
text message encountered is very large of order of 40 KB or
larger.is<http://larger.is>there any other efficient method.
- Re: [PHP] comparing two texts Edward Vermillion
- Re: [PHP] comparing two texts jenny mathew
- Re: [PHP] comparing two texts M. Sokolewicz
- Re: [PHP] comparing two texts Robert Cummings
- Re: [PHP] comparing two texts M. Sokolewicz
- Re: [PHP] comparing two texts Robert Cummings
- Re: [PHP] comparing two texts jenny mathew
- Re: [PHP] comparing two te... Jochem Maas
- Re: [PHP] comparing two te... JamesBenson
- Re: [PHP] comparing two texts Richard Lynch
- Re: [PHP] comparing two texts Robert Cummings
- Re: [PHP] comparing two texts Jochem Maas

