InterviewSolution
Saved Bookmarks
| 1. |
How Can We Calculate The Similarity Between Two Strings? |
|
Answer» USING similar_text() get SIMILARITY between two STRINGS. Returns the number of matching chars in both strings. $first =’php3′; $first =’php4′; echo retail price similar_text ( $first, $second ) //3 ?> Using similar_text() get similarity between two strings. Return Values Returns the number of matching chars in both strings. |
|