[PHP] Levenshtein and Similar_Text Comparison

2003-12-17 Thread Gohaku
Hi everyone, I have been using the levenshtein function and similar_text function to evaluate which is the better function to use. I have read that the levenshtein function runs faster than similar_text. I haven't noticed any runtime differences but I have noticed that levenshtein seems to be mo

Re: [PHP] levenshtein - comparing strings?

2003-10-12 Thread Duncan
Actually I found out that php.net offers the source code for that part :) here it is: http://ca.php.net/source.php?url=/quickref.php ...and I was able to use it as a basis to fit my need. Duncan Burhan Khalid wrote: Duncan wrote: Hi, I am trying to add a function to my template

[PHP] levenshtein - comparing strings?

2003-10-12 Thread Duncan
Hi, I am trying to add a function to my template system where the script will output a similar name to the one entered, e.g.: array('main','page1','testing','main_info'); user input: 'mai' then it should return 'main' & 'main_info' from the array as possible matches. (Ok, easy example, but it's

[PHP] levenshtein

2002-03-03 Thread adder
is it possible to use levenshtein as part of a mysql select ? i have been experimenting but seem to return no results I would like to be able to select a row based on how near my search text is to the contents i.e if the table is mysql_mail and it's fields are 'to' 'sender' 'subject' and 'body'