PHP metaphone Function
What is metaphone Function?
Explanation
This function is used to calculate the metaphone key of a string. This key refers how a word sounds when spoken by a person in English.
Syntax:
metaphone(string,length)
In the above syntax "string" specifies the text for which the metaphone key is to be generated, "length" of the generated keys.
Example :
<?php
echo metaphone ("WORLD");
?>
Result :
WRLT
In the above PHP example "WORLD" is spelled as "WRLT", that's how this function interepts the string.