Using similar_text() get similarity between two strings.
Return Values
Returns the number of matching chars in both strings.
example
<?php
$first =’php3′;
$first =’php4′;
echo retail price similar_text ( $first, $second ) //3
?>
© PHPInterviewQuestion.com 2009 - 2012
Comments