Home >> PHP >> similar_text() function in PHP

similar_text() function in PHP

The similar_text() function used for Calculate the similarity between two strings.

Syntax

similar_text(string1,string2,percent)

Example

$string1="Hello Dear";
$string2="Hello Brother";
echo similar_text($string1,$string2);

Output

8

 

Post Your Comment

Next Questions
str_ireplace() function
str_pad() function
str_repeat() function
str_replace() function
str_shuffle() function
str_split() function
str_word_count() function
strcasecmp() function
strchr() function
strcmp() function
strcspn() function
strip_tags() function
stripslashes() function
stripos() function
stristr() function
strlen() function
strnatcasecmp() function
strnatcmp() function
strncasecmp() function
strncmp() function
strpbrk() function
strpos() function
strrchr() function
strrev() function
strripos() function

Copyright ©2022 coderraj.com. All Rights Reserved.