Query: soundex
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SOUNDEX(3) 1 SOUNDEX(3) soundex - Calculate the soundex key of a stringSYNOPSISstring soundex (string $str)DESCRIPTIONCalculates the soundex key of $str. Soundex keys have the property that words pronounced similarly produce the same soundex key, and can thus be used to simplify searches in databases where you know the pronunciation but not the spelling. This soundex function returns a string 4 characters long, starting with a letter. 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.PARAMETERSo $str - The input string.RETURN VALUESReturns the soundex key as a string.EXAMPLESExample #1 Soundex Examples <?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 ?>SEE ALSOlevenshtein(3), metaphone(3), similar_text(3). PHP Documentation Group SOUNDEX(3)
Related Man Pages |
---|
soundex(3tcl) - debian |
text::soundex5.18(3pm) - mojave |
text::soundex5.16(3pm) - osx |
text::soundex(3perl) - debian |
text::soundex(3pm) - suse |
Similar Topics in the Unix Linux Community |
---|
The Art Of Programming - Part 2 |
The Art Of Programming |
How to merge two files with a slight twist |
Computer Programming |