3 More Discussions You Might Find Interesting
1. Web Development
I am now a student in university in 2nd year. I am studying computer science. But I am not sure what type of jobs computer science provide. I know some of them are software programming or network management. Recently, I hear some about Web Development. I wonder if it is a part of computer... (3 Replies)
Discussion started by: Anna Hussie
3 Replies
2. Programming
I am now a student in university in 2nd year. I am studying computer science. But I am not sure what type of jobs computer science provide. I know some of them are software programming or network management. Recently, I hear some about Web Development. I wonder if it is a part of computer science.... (1 Reply)
Discussion started by: Anna Hussie
1 Replies
3. Programming
ok, im somewhat of an advanced programmer for the windows-side of C/C++, and the system command to pause the console is 'system("pause");'.... i just recently transfered over to Slackware 3.3 (yes, its old, but i <3 text), and pause is not the command for pausing the command line. is there any... (3 Replies)
Discussion started by: 01000101
3 Replies
SOUNDEX(3) 1 SOUNDEX(3)
soundex - Calculate the soundex key of a string
SYNOPSIS
string soundex (string $str)
DESCRIPTION
Calculates 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.
PARAMETERS
o $str
- The input string.
RETURN VALUES
Returns the soundex key as a string.
EXAMPLES
Example #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 ALSO
levenshtein(3), metaphone(3), similar_text(3).
PHP Documentation Group SOUNDEX(3)