Example Output:

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

Example Code:

<?php
<?php
    
require '../../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 
'<tr><td bgcolor="#d0d0f5" align="left"><font face="Tahoma">';
    echo 
$Arabic->enNum('0123,456.789');
    echo 
'</font></td>';
    echo 
'<td bgcolor="#d0d0f5" align="right">0123,456.789</td></tr>';

    echo 
'</table></center>';

Total execution time is 0.0062558650970459 seconds
Amount of memory allocated to this script is 523808 bytes

Names of included or required files:

Related Class Documentation