PHP metaphone Function

What is metaphone Function?


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.



In the above syntax "string" specifies the text for which the metaphone key is to be generated, "length" of the generated keys.

Example :

echo metaphone ("WORLD");
Result :


In the above PHP example "WORLD" is spelled as "WRLT", that's how this function interepts the string.

PHP Topics

Ask Questions

Ask Question