<?php similar_text($string1, $string2, $percent); //$percent will have the percentage of similarity ?>