The soundex() function calculates the soundex key of a string.A soundex key is a four character long alphanumeric string that represent English pronunciation of a word.The soundex() function can be used for spelling applications.
string soundex ( string $str )
Calculates the soundex key of str.
This particular soundex function is one described by Donald Knuth in "The Art Of Computer Programming, vol. 3: Sorting And Searching", Addison-Wesley (1973), pp. 391-392.
Parameter | Description |
---|---|
str | The input string. |
Returns the soundex key as a string.