(PHP 3, PHP 4 )
soundex -- 문자열의 soundex 키를 계산한다.
설명
string
soundex ( string str)
str의 soundex키를 계산한다.
Soundex 키는 단어의 발음이 같으면, 같은 soundex 키를 생성하는 특성을 가진다.
그리고 이로인해 데이타베이스에서 발음은 알지만 스펠을 모르는 단어를 쉽게 찾을 수 가 있다.
이 soundex 함수는 알파벳 문자로 시작하는 4 문자 길이의 문자열을 반환한다.
이렇게 특별한 soundex 함수는 "The Art Of Computer Programming, vol. 3: Sorting And
Searching", Addison-Wesley (1973), pp. 391-392 에서 Donald Knuth 에 의해 기술되었다.
예 1. Soundex 예 soundex ("Euler") == soundex ("Ellery") == 'E460';
soundex ("Gauss") == soundex ("Ghosh") == 'G200';
soundex ("Hilbert") == soundex ("Heilbronn") == 'H416';
soundex ("Knuth") == soundex ("Kant") == 'K530';
soundex ("Lloyd") == soundex ("Ladd") == 'L300';
soundex ("Lukasiewicz") == soundex ("Lissajous") == 'L222'; |
|