[ create a new paste ] login | about

Link: http://codepad.org/WT01mFiR    [ raw code | fork ]

PHP, pasted on Jul 17:
1
2
3
4
5
6
7
8
9
10
11
12
<?php
function replace_tr($text) {
$text = trim($text);
$search = array('Ç','ç','Ğ','ğ','ı','İ','Ö','ö','Ş','ş','Ü','ü',' ');
$replace = array('c','c','g','g','i','i','o','o','s','s','u','u','-');
$new_text = str_replace($search,$replace,$text);
return $new_text;
}  
$kelime = 'ağaç';
$eng_kelime = replace_tr($kelime);
echo $trsiz_kelime
?>


Output:
No errors or program output.


Create a new paste based on this one


Comments: