1--TEST--
2Test soundex() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing soundex() : basic functionality ***\n";
6
7var_dump(soundex("Euler"));
8var_dump(soundex("Gauss"));
9var_dump(soundex("Hilbert"));
10var_dump(soundex("Knuth"));
11var_dump(soundex("Lloyd"));
12var_dump(soundex("Lukasiewicz"));
13
14var_dump(soundex("Euler")       == soundex("Ellery"));    // E460
15var_dump(soundex("Gauss")       == soundex("Ghosh"));     // G200
16var_dump(soundex("Hilbert")     == soundex("Heilbronn")); // H416
17var_dump(soundex("Knuth")       == soundex("Kant"));      // K530
18var_dump(soundex("Lloyd")       == soundex("Ladd"));      // L300
19var_dump(soundex("Lukasiewicz") == soundex("Lissajous")); // L222
20
21var_dump(soundex("Lukasiewicz") == soundex("Ghosh"));
22var_dump(soundex("Hilbert") == soundex("Ladd"));
23?>
24--EXPECT--
25*** Testing soundex() : basic functionality ***
26string(4) "E460"
27string(4) "G200"
28string(4) "H416"
29string(4) "K530"
30string(4) "L300"
31string(4) "L222"
32bool(true)
33bool(true)
34bool(true)
35bool(true)
36bool(true)
37bool(true)
38bool(false)
39bool(false)
40