note 107227 added to function.similar-text

From: Date: Tue, 17 Jan 2012 23:39:34 +0000
Subject: note 107227 added to function.similar-text
Groups: php.notes php.notes 
Request: Send a blank email to php-notes+get-185692@lists.php.net to get a copy of this message
For those interested, it appears that the similarity percentage formula is calculated as: $similarity = ($str1, $str2, $percentage); $percentage will be: 100 * $similarity / ((strlen($str1) + strlen($str2)) / 2) I haven't actually checked the source to confirm this, but it seems accurate to the 10th decimal place, so I skipped it. ---- Server IP: 192.41.42.26 Probable Submitter: 69.28.106.130 ---- Manual Page -- http://www.php.net/manual/en/function.similar-text.php Edit -- https://master.php.net/note/edit/107227 Del: integrated -- https://master.php.net/note/delete/107227/integrated Del: useless -- https://master.php.net/note/delete/107227/useless Del: bad code -- https://master.php.net/note/delete/107227/bad+code Del: spam -- https://master.php.net/note/delete/107227/spam Del: non-english -- https://master.php.net/note/delete/107227/non-english Del: in docs -- https://master.php.net/note/delete/107227/in+docs Del: other reasons-- https://master.php.net/note/delete/107227 Reject -- https://master.php.net/note/reject/107227 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185692) next »