Test Ar-PHP Functionality Online

header line!
Test PHP Function










Ar-PHP Manual

method swapAf [line 185]

string swapAf( string $text)

Make conversion to swap that odd Arabic text by original French sentence you meant when you type on your keyboard (if keyboard language was incorrect)



Tags:

return:  Normal French string
author:  Khaled Al-Sham'aa
access:  public


Parameters:

string   $text   Odd Arabic string

Example
  1.      include('./I18N/Arabic.php');
  2.      $obj new I18N_Arabic('KeySwap');
  3.  
  4.      $str "Hpf lk hgkhs hglj'vtdkK Hpf hg`dk dldg,k f;gdjil Ygn ,p]hkdm ...";
  5.  
  6.      echo "<p><u><i>Before:</i></u><br />$str<br /><br />";
  7.  
  8.      $text $obj->swapEa($str);
  9.  
  10.      echo "<u><i>After:</i></u><br />$text<br /><br />";
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa