title: Transliterate arabic characters into english - Wordpress
body: <p>I want to convert arabic characters into english characters. </p>
  
  <p>I want to convert the tile of post in wordpress and transliterate into english characters.
  and store it in a variable like $entitle. </p>
  
  <p>how can i do it?</p>
  
  <p>Can please someone help?</p>
  
  <pre><code>if ($this-&gt;registry-&gt;options['invetag_seotopic_ahmed_php'] AND $zwr_ahmedPHP == "show") {
  
      $en = str_split('{}DFL:"ZCV&lt;&gt;`qwertyuiop[]asdfghjkl;\'zxcvnm,./~QWERYIOPASHJKXNM?');
  
      $ar = str_split('&lt;&gt;][/:"~}{,.ذضصثقفغعهخحجدشسيبلاتنمكطئءؤرىةوزظًٌَُّإ÷×؛ٍِأـ،ْآ’؟');
  
      for ($ahmedPHP = 0; $ahmedPHP &lt; count($seotopic_thread); $ahmedPHP++) {
  
          $inv_tmp = str_replace($ar, $en, $seotopic_thread[$ahmedPHP]);
  
          $inv_ar_tmp [] = str_replace(array('لا', 'لآ', 'لأ', 'لإ', '‘'), array('b', 'B', 'G', 'T', 'U'), $inv_tmp);
      }
  
      if (is_array($inv_ar_tmp)) {
  
          $invtag = implode(" ", $inv_ar_tmp);
          $invtag = '&lt;hr size="1" style="color:#D1D1E1; background-color:#D1D1E1" /&gt;' . "&lt;p class=\"alt2\" dir=\"ltr\" style=\"margin: 1px auto;  padding: 6px;border: 1px inset; width: 640px;height: 34px;text-align: left;overflow: auto\"&gt;" . $invtag . "&lt;/p&gt;\n";
          $post[message] = $post[message] . $invtag;
      }
  } 
  </code></pre>