Home > PHP > Function > Enchant > enchant_dict_add_to_session()

enchant_dict_add_to_session()

enchant_dict_add_to_session - add 'word' to this spell-checking session

Syntax

enchant_dict_add_to_session (resource $dict, string $word)

Arguments

  • dict - Dictionary resource
  • word - The word to add

Description

Add a word to the given dictionary. It will be added only for the active spell-checking session.

Version

PHP PECL enchant >= 0.1.0

Return value

Returns TRUE on success or FALSE on failure.