Location: PHPKode > scripts > EnTransliteration > entransliteration/example2.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>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>
</div>

<div class="Paragraph" dir="rtl">
<br />
ÅÐÇ ßäÊ ÊÑÛÈ Ýí ÈäÇÁ ÊØÈíÞ áãä áÇ íÓÊØíÚ ÇáÊÍÏË ÈÇáÚÑÈíÉ æíÍÇæá ÇáÊÝÇåã ãÚ ÔÎÕ áÇ íÚÑÝ ÇáÅäÌáíÒíÉ¡ ÝÅä åÐÇ ÇáãËÇá íæÖÍ ßíÝíÉ ÇáÇÓÊÝÇÏÉ ãä åÐÇ ÇáÕäÝ Ýí ßÊÇÈÉ ÇáÚÈÇÑÇÊ ÇáÚÑÈíÉ ÈÃÍÑÝ ÅäÌáíÒíÉ:
<?php
include('EnTransliteration.class.php');
$tr = new EnTransliteration();

$ar_sentences = array('ÃõÑöíÏ ÞóáíáÇð ãöä ÇáÔóÇí',
                      'ßóã åöíó ÇáÓÇÚóÉ ÇáÂä',
                      'ÃäÇ ÓóÚíÏ ÈöåóÐå ÇáÑöÍáóÉ',
                      'ÃõÑíÏ ãõÞÇÈáÉ ÇáÔóÎÕ ÇáãóÓÄæá åõäÇ',
                      'ÑóÌÇÁð ÃÍÖöÑ áí ÓóíøóÇÑóÉ ÃõÌÑóÉ',
                      'ÃíÞöÙäí ÇáÓÇÚóÉ ÇáÎÇãöÓóÉ ÕóÈÇÍÇð',
                      'Ãíäó ÃÌöÏ ÈóäßÇð áöÕóÑÝ ÇáÚõãáóÉ',
                      'Åäøó ÇáØóÞÓ Ìóãöíá Çáíóæã',
                      'ÃäÇ áÇ ÃÊóßóáøóã ÇáÚóÑóÈøöíóÉ'
            );
?>
<ul>
<?php
foreach($ar_sentences as $str){
    $en_str = $tr->ar2en($str);
    echo "<li>$str<br />$en_str</li><br />";
}
?>
</ul>
</div>
</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