Location: PHPKode > scripts > ArTransliteration > artransliteration/example.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1256" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<title>English-Arabic Transliteration</title>
</head>

<body>

<center>
<div style="width: 80%; position:absolute; left:10%; top:0%; z-index:1">
<br />
<div class="tabArea" align="center">
  <a class="tab" href="example.php">Example</a>
  <a class="tab" href="about.html">About</a>
</div>

<div class="Paragraph">

<?php
include('ArTransliteration.class.php');
$tr = new ArTransliteration();

$en_terms = array('George Bush', 'Paul Wolfowitz', 'Silvio Berlusconi', 'Guantanamo', 'Arizona', 'Maryland',
                  'Oracle', 'Yahoo', 'Google', 'Formula1', 'Boeing', 'Caviar', 'Telephone', 'Internet');
?>

<center>
<table border="0" cellspacing="2" cellpadding="5" width="60%">
<tr><td bgcolor="#27509D" align="center"><b><font color="#ffffff">English</font></b></td>
<td bgcolor="#27509D" align="center"><b><font color="#ffffff" face="Tahoma">Arabic</font></b></td></tr>

<?php
foreach($en_terms as $term){
    echo '<tr><td bgcolor="#f5f5f5">'.$term.'</td>';
    echo '<td bgcolor="#f5f5f5" align="right"><font face="Tahoma">'.$tr->en2ar($term).'</font></td></tr>';
}
?>

</table>
</center>
</div>
</center>
</body>
</html>
Return current item: ArTransliteration