hi to every one i want to built a programe in php in which when two string is provided by user then these strings are compared and it shows the similarity between them in % form as i result.is there some one to help me?:(

Try this:

<?
$stringa='This is a test';
$stringb='This is a tests';
similar_text ($stringa,$stringb,$percent);
echo round($percent,2).'%';
?>

Hope that helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.