컴

soundex - 문자열의 soundex 키 계산

· 2017-05-16 (화) 16:37:43 · 2576

soundex - 문자열의 soundex 키 계산

 

설명 ¶

 

string soundex ( string $str )

str 의 soundex 키를 계산합니다

 

Soundex 키는 비슷한 발음으로 발음되는 단어가 동일한 soundex 키를 생성하므로 발음을 알고 있지만 철자는 알지 못하는 데이터베이스의 검색을 단순화하는 데 사용할 수 있습니다. 이 soundex 함수는 문자로 시작하는 4 자 길이의 문자열을 반환합니다.

 

이 특별한 soundex 함수는 Donald Knuth에 의해 "컴퓨터 프로그래밍의 기술, 3 권 : 정렬 및 검색", Addison-Wesley (1973), 391-392 페이지에 설명되어 있습니다.

 

매개 변수 ¶

 

str

입력 문자열.

 

반환 값 ¶

 

soundex 키를 문자열로 반환합니다.

 

예 ¶

 

Example # 1 Soundex 예제

 

<?php

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

?>

|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
jQuery 17-08-27 조회 2,072
jQuery 17-08-27 조회 2,205
jQuery 17-08-25 조회 2,057
jQuery 17-08-25 조회 2,089
jQuery 17-08-25 조회 2,290
jQuery 17-08-24 조회 1,811
jQuery 17-08-24 조회 2,589
jQuery 17-08-24 조회 2,028
jQuery 17-08-23 조회 2,244
jQuery 17-08-23 조회 2,264
jQuery 17-08-23 조회 2,487
jQuery 17-08-22 조회 2,427
jQuery 17-08-22 조회 1,925
jQuery
[jQuery]
17-08-22 조회 2,402
PHP 17-08-21 조회 7,415
jQuery 17-08-20 조회 3,052
jQuery 17-08-20 조회 2,069
jQuery 17-08-20 조회 2,135
jQuery 17-08-18 조회 2,272
jQuery 17-08-18 조회 1,753
jQuery 17-08-18 조회 2,358
jQuery 17-08-17 조회 2,110
jQuery 17-08-17 조회 2,313
jQuery 17-08-17 조회 2,438
jQuery 17-08-16 조회 2,045
jQuery 17-08-16 조회 2,059
jQuery 17-08-16 조회 2,024
jQuery 17-08-15 조회 1,710
jQuery 17-08-15 조회 1,875
jQuery 17-08-15 조회 1,892