PHP function metaphone()
Availability in PHP 4.0
Calculate the metaphone key of a string
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$str |
string |
not | String being processed. |
$phonemes |
int |
0 | This parameter restricts the returned metaphone key to phonemes characters in length. The default value of 0 means no restriction. |
Return values
string
|bool the metaphone key as a string, or FALSE on failure