1--TEST--
2Test soundex() function : basic functionality
3--FILE--
4<?php
5/* Prototype  : string soundex  ( string $str  )
6 * Description: Calculate the soundex key of a string
7 * Source code: ext/standard/string.c
8*/
9echo "*** Testing soundex() : basic functionality ***\n";
10
11var_dump(soundex("Euler"));
12var_dump(soundex("Gauss"));
13var_dump(soundex("Hilbert"));
14var_dump(soundex("Knuth"));
15var_dump(soundex("Lloyd"));
16var_dump(soundex("Lukasiewicz"));
17
18var_dump(soundex("Euler")       == soundex("Ellery"));    // E460
19var_dump(soundex("Gauss")       == soundex("Ghosh"));     // G200
20var_dump(soundex("Hilbert")     == soundex("Heilbronn")); // H416
21var_dump(soundex("Knuth")       == soundex("Kant"));      // K530
22var_dump(soundex("Lloyd")       == soundex("Ladd"));      // L300
23var_dump(soundex("Lukasiewicz") == soundex("Lissajous")); // L222
24
25var_dump(soundex("Lukasiewicz") == soundex("Ghosh"));
26var_dump(soundex("Hilbert") == soundex("Ladd"));
27?>
28===DONE===
29--EXPECT--
30*** Testing soundex() : basic functionality ***
31string(4) "E460"
32string(4) "G200"
33string(4) "H416"
34string(4) "K530"
35string(4) "L300"
36string(4) "L222"
37bool(true)
38bool(true)
39bool(true)
40bool(true)
41bool(true)
42bool(true)
43bool(false)
44bool(false)
45
46===DONE===
47