1--TEST--
2Bug #48709 (metaphone and 'wh')
3--FILE--
4<?php
5
6/* Initial letter exceptions */
7$exceptions = array(
8    'kn', // Drop first letter
9    'gn', // ditto
10    'pn', // ditto
11    'ae', // ditto
12    'wr', // ditto
13    'x',  // s
14    'wh', // w
15    'wa'  // w
16);
17
18foreach ($exceptions as $letter) {
19    printf("%s => %s\n", $letter, metaphone($letter));
20}
21
22?>
23--EXPECT--
24kn => N
25gn => N
26pn => N
27ae => E
28wr => R
29x => S
30wh => W
31wa => W
32