Current Location: Home> Function Categories> metaphone

metaphone

Calculate the metaphone key of a string
Name:metaphone
Category:String
Programming Language:php
One-line Description:Calculate the metaphone key of the string.

Definition and usage

metaphone() function calculates the metaphone key of a string.

The metaphone key represents the English pronunciation of a string.

metaphone() function can be used in spellchecking programs.

Note: metaphone() function creates the same key for words with similar pronunciation.

Note: The generated metaphone key length is variable.

Tip: metaphone() is more accurate than soundex() function, because metaphone() understands the basic rules of English pronunciation.

grammar

 metaphone ( string , length )
parameter describe
string Required. Specifies the string to be checked.
length Optional. Specifies the maximum length of the metaphone key.
Similar Functions
Popular Articles