pspell_config_create

FunctionRemoved in PHP 8.4

Create a config used to open a dictionary.

PHP 5
PHP 7
PHP 8.0
Improved
PHP 8.1
Improved
PHP 8.2-8.3
PHP 8.4
Removed
PHP 8.5
PHP 8.6

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: int to PSpell\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

PHP VersionAvailability
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