note 43011 added to function.similar-text
| From: | louis#at#mulliemedia dot com at rn2 dot php dot net | Date: | Sun, 06 Jun 2004 21:01:07 +0000 |
| Subject: | note 43011 added to function.similar-text | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70437@lists.php.net to get a copy of this message | ||
Note that this function will calculate the percentage blindly, without regard to the LENGHT of the
string.
This may become important if you try to print similar names to SMALL strings :
e.g.
I want to print out the value if it is 90 percent similar to the other one : the value is HE, the
correct value is HEC
The similar_text() function will return approximately 66.7 %, and it will not print it because it is
smaller than 90 %, although almost all of the string was matched.
----
Manual Page -- http://www.php.net/manual/en/function.similar-text.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43011
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43011&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43011&report=yes
Search -- http://master.php.net/manage/user-notes.php