Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

string match and tell how percentage match using php

<?php
$sim = similar_text("matching characters", "matching character", $percent); 
// To display the number of matching characters 
echo "Number of similar characters : $sim
".'<br>'; 
// To display the percentage of matching characters 
echo "Percentage of similar characters : $percent
"; 
?> 
 
PREVIOUS NEXT
Tagged: #string #match #percentage #match #php
ADD COMMENT
Topic
Name
5+9 =