Explain soundex() and metaphone().



Explain soundex() and metaphone()...

Answer / Kavindra Singh Thakur

Both `soundex()` and `metaphone()` are phonetic algorithms used to approximate the pronunciation of words in programming languages like PHP. They help in matching words that have different spellings but similar sounds. The main difference between them is that `soundex()` splits words into initial consonant groups, while `metaphone()` creates a code based on the vowel and consonant sequences.nn``phpnecho soundex('apple'); // Output: A132necho metaphone('apple'); // Output: APL

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Why laravel is the best php framework in 2019?

1 Answers  


What are super global variables in php?

1 Answers  


How many ways you can delete a session variable ?

6 Answers  


Does php 7 support multiple inheritance?

1 Answers  


What are the advantages and disadvantages of cascade style sheets?

1 Answers  


Does php support inheritance?

1 Answers  


Do you know what does $globals means?

1 Answers  


Can you extend a final defined class?

1 Answers  


What is difference between sql and php?

1 Answers  


Is server side a session?

1 Answers  


What is php limit?

1 Answers  


What new features php7 has in store for us?

1 Answers  


Categories