soundex

(PHP 3, PHP 4 >= 4.0.0)

soundex -- SpoΦφtat soundex klφΦ °et∞zce

Popis

string soundex ( string str)

SpoΦφtß soundex klφΦ str.

Soundex klφΦe majφ tu vlastnost, ╛e slova vyslovovanß podobn∞ produkujφ shodnΘ soundex klφΦe, a dajφ se proto vyu╛φt ke zjednodu╣enφ hledßnφ v databßzφch, kde znßte v²slovnost, ale ne hlßskovßnφ. Tato funkce vracφ °et∞zec dlouh² 4 znaky zaΦφnajφcφ pφsmenem.

Tato konkrΘtnφ soundex funkce je popsßna Donaldem Knuthem v "The Art Of Computer Programming, vol. 3: Sorting And Searching", Addison-Wesley (1973), pp. 391-392.

P°φklad 1. Soundex ukßzky

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';