downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<md5money_format>
Last updated: Thu, 26 Jun 2008

metaphone

(PHP 4, PHP 5)

metaphone — Calculate the metaphone key of a string

Description

string metaphone ( string $str [, int $phones ] )

Calculates the metaphone key of str .

Similar to soundex() metaphone creates the same key for similar sounding words. It's more accurate than soundex() as it knows the basic rules of English pronunciation. The metaphone generated keys are of variable length.

Metaphone was developed by Lawrence Philips <lphilips at verity dot com>. It is described in ["Practical Algorithms for Programmers", Binstock & Rex, Addison Wesley, 1995].

Parameters

str

The input string.

phones

Return Values

Returns the metaphone key as a string.



add a noteadd a note User Contributed Notes
Calculate the metaphone key of a string
There are no user contributed notes for this page.




<md5money_format>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs