Property | Type | Description | |
---|---|---|---|
$words | string[] |
Method | Description | |
---|---|---|
__construct ( array $words = [] ) | ||
add ( string $word ) : void | Add a word to the dictionary | |
addWords ( array $words ) : void | Add multiple words to the dictionary | |
addWordsFromTextFile ( $filePath, $delimiter = " " ) : void | Add words from a text file to the dictionary | |
contains ( $word ) | ||
count ( ) | ||
remove ( string $word ) : void | Remove a word from the dictionary |
public addWordsFromTextFile ( $filePath, $delimiter = " " ) : void | ||
return | void |