Question: Write a function mySoundex($name) that computes the Soundex code for the given parameter name.Soundex is a set of rules that transforms an English name into
Write a function mySoundex($name) that computes the Soundex code for the given parameter name.Soundex is a set of rules that transforms an English name into a hash-code that can be used for similar names (so looking up a name in a database based on the soundex code will yield similar sounding names).The Soundex rules are given at http://en.wikipedia.org/wiki/Soundex. Note: PHP has a built-in soundex() function that you should NOT use for this assignment (the idea is to write it yourself).Test your function using the names"Euler", "Ellery", "Gauss", "Ghosh", "Hilbert", "Heilbronn", "Knuth", "Kant", "Leida", "Ladd", "Lukasiewicz", and "Lissajous"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
