metaphone

string metaphone (string string) 

Generates the metaphone key for a string.

Returns:

String; FALSE on error

Description:

metaphone() is used to generate a metaphone key for a string. Metaphone keys are strings that represent approximately how a string of characters would sound when pronounced using English-language pronunciation rules. Metaphone keys are extremely useful for text search-and-match applications.

Note:

Metaphone was developed by Lawrence Philips (lphilips@verity.com). More information can be found at http://aspell.sourceforge.net/metaphone/nd and in Practical Algorithms for Programmers by Binstock and Rex (Addison Wesley, 1995).

Version:

PHP 4.0b4+

See also:

To generate a soundex key for a string:

soundex() 

To analyze ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.