PHP.nl

pspell_new_config

pspell_new_config

Load a new dictionary with settings based on a given config

 **pspell_new_config** PSpell\Config $config
opens up a new dictionary with

settings specified in a , created with and modified with functions. This method provides you with the most flexibility and has all the functionality provided by and . pspell_new_config``config``pspell_config_create``pspell_config_*``pspell_new``pspell_new_personal

config The parameter is the one returned by when the config was created. config``pspell_config_create

Returns an instance on success, return.falseforfailure PSpell\Dictionary

<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl");
$pspell = pspell_new_config($pspell_config);
?>