Definition
The metaphone() function calculates the metaphone key(how a string sounds if said by an English speaking person) of a string.
Syntax
metaphone(string, length)
Parameters
Parameter | Description |
---|---|
string |
Required. Specifies the string to check. |
length |
Optional. Specifies the maximum length of the metaphone key. |
Example
<?php
echo metaphone("World");