Example Output:

English
(auto generated)
Arabic
(sample input)
Khalid Al-Sham'ahخالِد الشَمعَة
Jubran Khalyl Jubranجُبران خَليل جُبران
Kazim Al-Sahirكاظِم الساهِر
Majidah Al-Roumei, Nizar Qab'baniماجِدَة الرُومِي، نِزار قَبَّانِي
Souq Al-Hameidei'iah?سُوق الحَمِيدِيَّة؟
Magharah Ja'eitaمَغارَة جَعِيتَا
Ghoutah Dimashqغُوطَة دِمَشق
Halab Al-Shahba'aحَلَب الشَهبَاء
Jazyrah Aarwadجَزيرَة أَرواد
Bilad Al-Rafidanبِلاد الرافِدَين
Ahramat Al-Jeizahأهرامات الجِيزَة
Diraدِرْع
Eidعِيد
Oudعُود
Rid'aرِدْء
Eida'aإِيدَاء
Hibah Al-Lhهِبَة الله

Example Code:

<?php
<?php
    
include('I18N_Arabic.php');
    
$Arabic = new I18N_Arabic('Transliteration');

    
$ar_terms = array('خالِد الشَمعَة''جُبران خَليل جُبران''كاظِم الساهِر',
        
'ماجِدَة الرُومِي، نِزار قَبَّانِي''سُوق الحَمِيدِيَّة؟''مَغارَة
        جَعِيتَا'
'غُوطَة دِمَشق''حَلَب الشَهبَاء''جَزيرَة أَرواد''بِلاد
        الرافِدَين'
'أهرامات الجِيزَة''دِرْع''عِيد''عُود''رِدْء'
        
'إِيدَاء''هِبَة الله');

    echo <<< END
<center>
  <table border="0" cellspacing="2" cellpadding="5" width="500">
    <tr>
      <td bgcolor="#27509D" align="center" width="150">
        <b>
          <font color="#ffffff" face="Tahoma">
            English<br />(auto generated)
          </font>
        </b>
      </td>
      <td bgcolor="#27509D" align="center" width="150">
        <b>
          <font color="#ffffff">
            Arabic<br />(sample input)
          </font>
        </b>
      </td>
    </tr>
END;

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

    echo <<< END
  </table>
</center>
END;
?>

Total execution time is 0.015137910842896 seconds
Amount of memory allocated to this script is 354720 bytes

Names of included or required files:

Related Class Documentation