Main Content

Finding variations on a surname

Archive - Originally posted on "The Horse's Mouth" - 2009-02-17 23:51:40 - Graham Ellis

Here's a little demonstration of how you can use PHP to look for a 'similar word' - in this case, from a file of surnames. Have I done all the hard work? No - I crawled for some surnames to add to my demonstration file, and I used PHP's built in functions to do the hard work!



Run Demonstration or see program code. Try it with London, Ellis, Johnstone, Smith and Briscoe. Learn how to do it on a PHP Techniques Workshop