Location: PHPKode > scripts > ArSoundex > arsoundex/example.php
<html>
<head>
<title>ASoundex</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
</head>
<body>
<?php
require('ASoundex.class.php');

$sd = new ASoundex(4,'en','soundex');
?>
<table border=0 cellpadding=5 cellspacing=2>
<tr>
    <td colspan=3>Listed below are 6 different spelling for the name
    <i><a href="http://en.wikipedia.org/wiki/Bill_Clinton" target=_blank>Clinton</a></i>
      found in collection of news articles in addition to original English spelling.</td>
</tr>
<tr>
    <td bgcolor=#000000 width=33%><b><font color=#ffffff>Function</font></b></td>
    <td bgcolor=#000000 width=33%><b><font color=#ffffff>Input</font></b></td>
    <td bgcolor=#000000 width=33%><b><font color=#ffffff>Output</font></b></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>PHP soundex function</td>
    <td bgcolor=#f5f5f5>Clinton</td>
    <td bgcolor=#f5f5f5><?=soundex('Clinton')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ßáíäÊæä</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ßáíäÊæä')?>
</td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ßáíäÊä</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ßáíäÊä')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ßáíäØæä</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ßáíäØæä')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ßáäÊä</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ßáäÊä')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ßáäÊæä</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ßáäÊæä')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ßáÇíäÊæä</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ßáÇíäÊæä')?></td>
</tr>
<tr>
    <td colspan=3>&nbsp;</td>
</tr>
<tr>
    <td colspan=3>Listed below are 6 different spelling for the name
    <i><a href="http://en.wikipedia.org/wiki/Milosevic" target=_blank>Milosevic</a></i>
     found in collection of news articles in addition to original English spelling.</td>
</tr>
<tr>
    <td bgcolor=#000000><b><font color=#ffffff>Function</font></b></td>
    <td bgcolor=#000000><b><font color=#ffffff>Input</font></b></td>
    <td bgcolor=#000000><b><font color=#ffffff>Output</font></b></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>PHP soundex function</td>
    <td bgcolor=#f5f5f5>Milosevic</td>
    <td bgcolor=#f5f5f5><?=soundex('Milosevic')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ãíáæÓíÝíÊÔ</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ãíáæÓíÝíÊÔ')?>
</td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ãíáæÓÝíÊÔ</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ãíáæÓÝíÊÔ')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ãíáæÒÝíÊÔ</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ãíáæÒÝíÊÔ')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ãíáæÒíÝíÊÔ</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ãíáæÒíÝíÊÔ')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ãíáÓíÝíÊÔ</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ãíáÓíÝíÊÔ')?></td>
</tr>
<tr>
    <td bgcolor=#f5f5f5>ASoundex class</td>
    <td bgcolor=#f5f5f5>ãíáæÓíÝÊÔ</td>
    <td bgcolor=#f5f5f5><?=$sd->soundex('ãíáæÓíÝÊÔ')?></td>
</tr>
</table>
</body>
</html>
Return current item: ArSoundex