Location: PHPKode > scripts > EnTransliteration > entransliteration/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" />

<meta name="Subject" content="Arabic-English Transliteration" />
<meta name="Description" content="Arabic-English Transliteration" />
<meta name="Classification" content="PHP and Arabic Language" />
<meta name="Keywords" content="English, Transliteration, PHP, Arabic, Language, Development, Implementation, Open Source, Free, GPL, Classes, Code" />
<meta name="Language" content="English, Arabic" />
<meta name="Author" content="Khaled Al-Shamaa" />
<meta name="Copyright" content="Khaled Al-Shamaa" />
<meta name="Designer" content="Khaled Al-Shamaa" />
<meta name="Publisher" content="Khaled Al-Shamaa" />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="INDEX,FOLLOW" />
<meta name="City" content="Aleppo" />
<meta name="Country" content="Syria" />

<link rel="shortcut icon" href="../favicon.ico" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<title>Arabic-English 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 1</a>
  <a class="tab" href="example2.php">Example 2</a>
  <a class="tab" href="about.html">About</a>
  <a class="tab" href="http://www.ar-php.com">Homepage</a>
</div>

<div class="Paragraph">

<?php
@ini_set('zend.ze1_compatibility_mode', '1');

include('EnTransliteration.class.php');
$tr = new EnTransliteration();

$ar_terms = array('ÎÇáöÏ ÇáÔóãÚóÉ', 'ÌõÈÑÇä Îóáíá ÌõÈÑÇä', 'ßÇÙöã ÇáÓÇåöÑ',
    'ãÇÌöÏóÉ ÇáÑõæãöí', 'äöÒÇÑ ÞóÈøóÇäöí', 'ÓõæÞ ÇáÍóãöíÏöíøóÉ', 'ãóÛÇÑóÉ
    ÌóÚöíÊóÇ', 'ÛõæØóÉ ÏöãóÔÞ', 'ÍóáóÈ ÇáÔóåÈóÇÁ', 'ÌóÒíÑóÉ ÃóÑæÇÏ', 'ÈöáÇÏ
    ÇáÑÇÝöÏóíä', 'ÃåÑÇãÇÊ ÇáÌöíÒóÉ');

$new_ar_terms = array('ÏöÑúÚ', 'ÚöíÏ', 'ÚõæÏ', 'ÑöÏúÁ', 'ÅöíÏóÇÁ', 'åöÈóÉ Çááå');
?>

<center>
<table border="0" cellspacing="2" cellpadding="5" width="60%" dir="rtl">
<tr><td bgcolor="#27509D" align="center" dir="ltr" width="50%"><b><font color="#ffffff">Arabic (sample input)</font></b></td>
<td bgcolor="#27509D" align="center" dir="ltr" width="50%"><b><font color="#ffffff" face="Tahoma">English (auto generated output)</font></b></td></tr>

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

foreach($new_ar_terms as $term) {
    echo'<tr><td bgcolor="#f5f5c0" align="right"><font face
        ="Tahoma">'.$term.'</font></td>';
    echo'<td bgcolor="#f5f5c0" align="left"><font face="Verdana">'.$tr->ar2en
        ($term).'</font></td></tr>';
}
?>

</table>
</center>
</div>
<table border="0" cellspacing="0" align="left">
  <tr>
    <td bgcolor="#448800">&nbsp;&nbsp;</td>
    <td bgcolor="#66aa00">&nbsp;&nbsp;</td>
    <td bgcolor="#77bb00">&nbsp;&nbsp;</td>
    <td bgcolor="#aadd00">&nbsp;&nbsp;</td>
    <td bgcolor="#eeff66">&nbsp;&nbsp;</td>
  </tr>
</table>
</center>
          <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
          </script>
          <script type="text/javascript">
          _uacct = "UA-1268287-1";
          urchinTracker();
          </script>
</body>
</html>
Return current item: EnTransliteration