Definition
The soundex() function calculates the soundex key(a four character long alphanumeric string that represent English pronunciation of a word) of a string.
Syntax
soundex(string)
Parameters
Parameter | Description |
---|---|
string |
Required. Specifies the string to check. |
Example
<?php
$hello = "Hello";
echo soundex($hello);