// Metaphone is a phonetic algorithm, published by Lawrence Philips in 1990,
// for indexing words by their English pronunciation.
// string metaphone( string $str [, int $phonemes = 0 ])
echo "<pre>";
var_dump(metaphone('PHP Programming', 5)); // 5 phonemes characters length
var_dump(metaphone('Programming', 5));
echo "</pre>";
/*
run:
string(5) "FPPRK"
string(5) "PRKRM"
*/