English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The metaphone() function is used to calculate the metaphone key of a string.
string metaphone ( string $str[, int $phonemes = 0 ] )
Used to calculate the metaphone key of a string
Returns the metaphone key as a string, or FALSE on failure.
Serial Number | Parameters and Description |
---|---|
1 | str Input String |
2 | length Specify the maximum length of the metaphone key. |
Try the following example, calculate "w3Calculate the metaphone key for "w
<?php //Calculate "oldtoolbag.com"'s metaphone key and output echo metaphone("oldtoolbag.com"); ?>Test and see‹/›
Output Result
NHKM