pspell_config_create
Create a config used to open a dictionary.
pspell_config_create Function synopsis
pspell_config_create(
string $language,
string $spelling = "",
string $jargon = "",
string $encoding = ""
): PSpell\Config
Parameters
$language
Typestring
The language parameter is the language code which consists of the two letter ISO 639 language code and an optional two letter ISO 3166 country code after a dash or underscore.
$spelling
OptionalTypestringDefault value""
The spelling parameter is the requested spelling for languages with more than one spelling such as English. Known values are 'american', 'british', and 'canadian'.
$jargon
OptionalTypestringDefault value""
The jargon parameter contains extra information to distinguish two different words lists that have the same language and spelling parameters.
$encoding
OptionalTypestringDefault value""
The encoding parameter is the encoding that words are expected to be in. Valid values are 'utf-8', 'iso8859-*', 'koi8-r', 'viscii', 'cp1252', 'machine unsigned 16', 'machine unsigned 32'. This parameter is largely untested, so be careful when using.
Return value
TypePSpell\Config
Returns an PSpell\Config instance.
Changes to the pspell_config_create Function
PHP 8.4
- Function removed
PHP 8.1
- Return type changed:
inttoPSpell\Config
pspell_config_create(
string $language,
string $spelling = "",
string $jargon = "",
string $encoding = ""
- ): int
+ ): PSpell\Config PHP 8.0
- Return type added:
int - Parameter type added for parameter #1 (
$language):string - Parameter type added for parameter #2 (
$spelling):string - Parameter default value added for position #2 (
$spelling):"" - Parameter type added for parameter #3 (
$jargon):string - Parameter default value added for position #3 (
$jargon):"" - Parameter type added for parameter #4 (
$encoding):string - Parameter default value added for position #4 (
$encoding):""
pspell_config_create(
- $language,
+ string $language,
- $spelling,
+ string $spelling = "",
- $jargon,
+ string $jargon = "",
- $encoding
+ string $encoding = ""
- )
+ ): int pspell_config_create Function Availability
pspell_config_create Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | No |
| PHP 8.5Supported (Latest) | No |
| PHP 8.4Supported | No |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |