PHP code example of liugj / double-array-trie

1. Go to this page and download the library: Download liugj/double-array-trie 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/ */

    

liugj / double-array-trie example snippets


$app->register(Liugj\DoubleArray\TrieServiceProvider::class);



return [
   'dest' => resoure_path(). '/pingbi.dat',  //Double Array path
   'src'  =>  resoure_path(). '/pingbi.txt'  //Sensitive words one word per line
];