September 2001
Intermediate to advanced
768 pages
32h 45m
English
int pspell_new_config(int configid) Creates a link to a Pspell dictionary to be used in subsequent operations.
Returns:
If successful, a positive integer identifier for the Pspell dictionary opened; FALSE if an error occurs
Description:
This function takes as its single argument the configuration link given as the result of a successful call to pspell_config_create(). Based on this configuration, a link to a Pspell dictionary is created and returned.
Example:
$config_id = pspell_config_create('en');
pspell_config_runtogether($config_id, TRUE);
$dict_id = pspell_new_config($config_id);
if (pspell_check($dict_id, 'phonecall')) {
echo "Correct";
} else {
echo "Incorrect";
}
|
Read now
Unlock full access