PHP metaphone function

Thursday, January 24, 2008, 10:53 AM
Source Code by John

echo metaphone("Garage");

Output: KRJ

The metaphone function is very likely a function you have never seen unless you have dug pretty deep into the PHP manual. Of course, there is one very obvious reason for that: it isn't the most useful command in the world.

About the only real use I've seen for it is in building a quick spell checker function. Other than that, I could imagine a cryptographic purpose for it, perhaps as a salt in a hash. I've seen some search algorithms that use it, but I'm not certain that a search that yield matches for "sun" and "son" as winners is a winner itself.

Advertisements


But, it is fun to dig into the obscure functions and see what is hiding there.


Mail article to a friend

© 2008 Pro Content and Design. All rights reserved.


Tools

Check Google PageRank


Recent articles

  1. What I've been working on lately
  2. Even my spam tells Soviet Russia jokes
  3. Did a similar text function bite Yahoo in the ass?
  4. Copyright bullies
  5. PHP's similar text function
  6. Know your web toys: Google static maps
  7. Useful advice from Google on Google
  8. Sorting out the National Weather Service XML feed
  9. I am liberated from the Mexican hookers
  10. Passing header to play nice with search bots

Welcome!

Wonder where to start with your web design business?

This blog follows along with my efforts to build and grow a website design business, Pro Content and Design.

The goal of this blog is to fill in blanks that may be empty as you get your business rolling.

This blog, particularly the source code section, is not intended for beginners. If you are not comfortable with databases, Ajax, DOM objects and other advanced methods, I strongly suggest you go take a look over at W3 Schools before even reading -- let alone tinkering with -- any of the code here.

I hope this blog has some value to web designers as they attempt to get their businesses going.

Good luck, and happy reading.

Thank you,
John Crawford
Pro Content and Design

Books


I highly recommend Art of the Start if you have no idea where to start with marketing.

Links

Coding
W3 Schools
IBM's Mastering Ajax Series

Graphic Design
Worth 1000
Stock.XCHNG
Urban Fonts

Website Software
Apache Web Server
SquirrelMail
PHP/Zend

Website Design Issues
Non-Standard Character Guide
Google Trends
Search Engine Optimization Analyzer

Business
Guy Kawasaki's Blog
Seth Godin's Blog
Freakonomics

Computers
NewEgg

My Main Website
Pro Content and Design

Websites I have built
PunxsyPage: local free classifieds website

Farm N Land: low-cost real estate listing website

InvestYoung: semi-defunct finance blog

Groundhog Festival: for the local summer festival

Weather Discovery Center

My Webapps
TV Stations Transmitter Database

Google PageRank Checker

Website where I did the code, database and admin
Tour de Toona: annual bicycle race in Altoona, PA