PHP code example of gordonlesti / levenshtein

1. Go to this page and download the library: Download gordonlesti/levenshtein library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gordonlesti / levenshtein example snippets

 php
$levDist = Levenshtein::levenshtein("AC", "ABAA");
 php
$levDist = Levenshtein::levenshtein("ACCB", "BC", 7.7, 9.4, 2.5);