summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug48709.phpt
blob: 9e0789a61f243df11eff78f709691ed07a395b48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Bug #48709 (metaphone and 'wh')
--FILE--
<?php

/* Initial letter exceptions */
$exceptions = array(
    'kn', // Drop first letter
    'gn', // ditto
    'pn', // ditto
    'ae', // ditto
    'wr', // ditto
    'x',  // s
    'wh', // w
    'wa'  // w
);

foreach ($exceptions as $letter) {
    printf("%s => %s\n", $letter, metaphone($letter));
}

?>
--EXPECT--
kn => N
gn => N
pn => N
ae => E
wr => R
x => S
wh => W
wa => W