SHARE
TWEET

Untitled

a guest Nov 19th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. function translit($str)
  4. {
  5.     $ru = 'а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я';
  6.     $en = 'a b v g d e yo zh z i j k l m n o p r s t u f h c ch sh sch " y \' e yu ya';
  7.  
  8.     return str_replace(explode(' ', $ru), explode(' ', $en), $str);
  9. }
  10.  
  11. echo translit('купи слона');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top