PHP Classes

File: example2.php

Recommend this page to a friend!
  Classes of Khaled Al-Shamaa   ArTransliteration   example2.php   Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example script
Class: ArTransliteration
Transliterate English text to Arabic
Author: By
Last change: Fix alignment issue
Date: 16 years ago
Size: 1,911 bytes


Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">

<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>


<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 class="Paragraph" dir="rtl">
<br />
إذا كنت ترغب في بناء تطبيق لمن لا يستطيع التحدث بالإنجليزية ويحاول التفاهم مع شخص لا يعرف العربية، فإن هذا المثال يوضح كيفية الاستفادة من هذا الصنف في كتابة العبارات الإنجليزية بأحرف عربية:
$tr = new ArTransliteration();

$en_sentences = array('I go to the market on Monday',
'How much tea do you want',
'How many tomatoes do you want',
'They walk in the mountains at the weekend',
'Does a secretary type letter',
'They are good players',
'They sometimes play basketball at the sports hall',
'Did he leave his bag in front of the house'
foreach($en_sentences as $str){
$ar_str = $tr->en2ar($str);
"<li>$str<br />$ar_str</li><br />";
          <script src="" type="text/javascript">
          <script type="text/javascript">
          _uacct = "UA-1268287-1";