RE: [PHP-WIN] STUCK : String Comaparison

2004-04-01 Thread Svensson, B.A.T. (HKG)
For an exhaustiv brute force partial match, between string 1 and string 2. Take the first string and break it up in segment of lenght 1,2,3,...,n-1, where n is the lenght of string 1. Then for each of these segment do a "string-find-in-string" in the second string - if you get a hit, then you have

Re: [PHP-WIN] STUCK : String Comaparison

2004-04-01 Thread Rico Derks
Hi Ron, Also in PHP a string is actually an array of characters. Maybe you can pick out each character and compared it to the character in the same position of the known string! Example: // Get the first character of a string $str = 'This is a test.'; $first = $str{0}; // Get the third charact