Using similar_text() get similarity between two strings.

Return Values

Returns the number of matching chars in both strings.

example

  1. <html>  
  2.  <body>  
  3.  <?php  
  4.  $first =’php3′;  
  5.  $first =’php4′;  
  6.  echo retail price similar_text ( $first, $second ) //3  
  7.  ?>  
  8.  </body>   
  9. </html>  
eXTReMe Tracker