PHP metaphone() functionPHP metaphone() function is predefined function. It is used to calculate the metaphone key of a string. It is useful to text search and text matching application. It is phonetic algorithm developed by Lawrence Philips. The algorithm produces variable length keys as output. Syntax:
Example 1Output: Before using metaphone() function:Hello PHP After using metaphone() function: HLFP Example 2Output: NS NS Example 3Output: string(7) "PRKRMNK" string(6) "PRKRMR" Example 4Output: NS NS Note: Given above example by using the length of parameter.Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India