Example Code1:


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

include(
'ArKeySwap.class.php');
$x = new ArKeySwap();

$str "Hpf lk hgkhs hglj'vtdkK Hpf hg`dk dldg,k f;gdjil Ygn
,p]hkdm hgHl,v tb drt,k ljv]]dk fdk krdqdk>"
;
echo 
"<u><i>Before:</i></u><br />$str<br /><br />";

$text $x->swap_ea($str);
echo 
"<u><i>After:</i></u><br />$text<br /><br /><b>جبران خليل جبران</b>";
?>

Example Output1:


Before:
Hpf lk hgkhs hglj'vtdkK Hpf hg`dk dldg,k f;gdjil Ygn ,p]hkdm hgHl,v tb drt,k ljv]]dk fdk krdqdk>

After:
أحب من الناس المتطرفين، أحب الذين يميلون بكليتهم إلى وحدانية الأمور فلا يقفون مترددين بين نقيضين.

جبران خليل جبران

Example Code2:


<?php
include('ArKeySwap.class.php');
$x = new ArKeySwap();

$str "ِىغ هىفثممهلثىف بخخم ؤشى ةشنث فاهىلس لاهللثق ةخقث ؤخة
حمثء شىي ةخقث رهخمثىفز ÷ف فشنثس ش فخعؤا خب لثىهعس شىي ش مخف خب
 ؤخعقشلث فخ ةخرث هى فاث خححخسهفث يهقثؤفهخىز"
;
echo 
"<u><i>Before:</i></u><br />$str<br /><br />";

$text $x->swap_ae($str);
echo 
"<u><i>After:</i></u><br />$text<br /><br /><b>Albert Einstein</b>";
?>

Example Output2:


Before:
ِىغ هىفثممهلثىف بخخم ؤشى ةشنث فاهىلس لاهللثق ةخقث ؤخةحمثء شىي ةخقث رهخمثىفز ÷ف فشنثس ش فخعؤا خب لثىهعس شىي ش مخف خب ؤخعقشلث فخ ةخرث هى فاث خححخسهفث يهقثؤفهخىز

After:
Any intelligent fool can make things bigger more complex and more violent. It takes a touch of genius and a lot of courage to move in the opposite direction.

Albert Einstein