Overview PHP spelling check function library _ PHP Tutorial

Source: Internet
Author: User
Overview PHP spelling check function library. As we all know, aspell_new loads a new dictionary. Syntax: intaspell_new (stringmaster, stringpersonal); return value: integer function type: data processing content description this function contains all know,

Aspell_new

Load a new dictionary.

Syntax: int aspell_new (string master, string personal );

Return value: integer

Function type: data processing

Description

This function loads a new dictionary and assigns a new ID value (integer) for use in the program.
Example $ aspell_link = aspell_new ("english ");

Aspell_check

Check a single word.

Syntax: boolean aspell_check (int dictionary_link, string word );

Return value: Boolean

Function type: data processing

Description

This function checks the spelling of a single word. If the spelling is correct, true is returned. if the spelling is incorrect, false is returned.

Aspell_check-raw

Check a single word without changing or correcting it even if it is spelled incorrectly.

Syntax: boolean aspell_check_raw (int dictionary_link, string word );

Return value: Boolean

Function type: data processing

Description

This function checks the spelling of a single word. If the spelling is correct, true is returned. if the spelling is incorrect, false is returned. This function does not change or correct users' spelling.


Upload, aspell_new load a new dictionary. Syntax: int aspell_new (string master, string personal); return value: integer function type: data processing content description this function loads...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.