Calculate the soundex key of "Hello":
The soundex() function calculates the soundex key of a string.
A soundex key is a four character long alphanumeric string that represent English pronunciation of a word.
The soundex() function can be used for spelling applications.
Note: The soundex() function creates the same key for similar sounding words.
Tip: metaphone() is more accurate than soundex(), because metaphone() knows the basic rules of English pronunciation.
| Parameter | Description |
|---|---|
| string | Required. Specifies the string to check |
| Return Value: | Returns the soundex key of the string on success, or FALSE on failure. |
|---|---|
| PHP Version: | 4+ |
Using the soundex() function on two similar sounding words:
Complete PHP String Reference
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.