PX : code

tur2eng by Varol Keskin
Download this code


<?PHP
//--------------------------------------------------
// Title........: Convert Turkish letters to English 
// Filename.....: tur2eng.php 
// Author.......: Varol Keskin 
// Version......: 1.0 
// Date.........: 15/08/2002 
//--------------------------------------------------

function tur2eng $return_string )
         {

// define or select the language before using the function.
// 1 for English, 2 for Turkish

         
global $current_language;

         if ( 
$current_language )
                  {
                    
$return_string str_replace"""c"$return_string);
                    
$return_string str_replace"""C"$return_string);
                    
$return_string str_replace"""g"$return_string);
                    
$return_string str_replace"""G"$return_string);
                    
$return_string str_replace"""i"$return_string);
                    
$return_string str_replace"""I"$return_string);
                    
$return_string str_replace"""o"$return_string);
                    
$return_string str_replace"""O"$return_string);
                    
$return_string str_replace"""s"$return_string);
                    
$return_string str_replace"""S"$return_string);
                    
$return_string str_replace"""u"$return_string);
                    
$return_string str_replace"""U"$return_string);
                  }

         return 
$return_string;
        }

?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.