1. Список говнокодов пользователя anal_opressor

    Всего: 1

  2. PHP / Говнокод #1998

    +161.7

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    function str_to_up($lo) 
    {
    	$up=array("a"  => "A","a"  => "A","a"  => "A","a"  => "A","a"  => "A","a"  => "A","?"  => "?","c"  => "C","e"  => "E",
    	        "e" => "E","e" => "E","e" => "E","i"  => "I","i"  => "I","i"  => "I","i"  => "I","?"  => "?","n"  => "N",
    	        "o"  => "O","o"  => "O","o"  => "O","o" => "O","o" => "O","?" => "?","o"  => "O","u"  => "U","u"  => "U",
    	        "u"  => "U","u"  => "U","y" => "Y","?" => "?","y" => "?",
    	        "a"  => "A", "b"  => "B", "c"  => "C","d"  => "D","e"  => "E","f"  => "F","g"  => "G","h"  => "H","i"  => "I","j"  => "J",
    	        "k" => "K","l" => "L","m" => "M","n"  => "N","o"  => "O","p"  => "P","q"  => "Q","r"  => "R","s"  => "S",
    	        "t"  => "T","u"  => "U","v"  => "V","w" => "W","x" => "X","y" => "Y","z"  => "Z"
    	    );
    
    	return strtr($lo, $up);
    }
    
    function str_to_lower($up) 
    {
    	$lo=array("А"  => "а","Б"  => "б","В"  => "в","Г"  => "г","Д"  => "д","Е"  => "е","Ж"  => "ж","З"  => "з","И"  => "и",
    			"Й" => "й","К" => "к","Л" => "л","М"  => "м","Н"  => "н","О"  => "о","П"  => "п","Р"  => "р","С"  => "с",
    			"Т"  => "т","У"  => "у","Ф"  => "ф","Х" => "х","Ц" => "ц","Ч" => "ч","Ш"  => "ш","Щ"  => "щ","Ъ"  => "ъ",
    			"Ы"  => "ы","Ь"  => "ь","Э" => "э","Ю" => "ю","Я" => "я",
    			"A"  => "a", "B"  => "b", "C"  => "c","D"  => "d","E"  => "e","F"  => "f","G"  => "g","H"  => "h","I"  => "i","J"  => "j",
    			"K" => "k","L" => "l","M" => "m","N"  => "n","O"  => "o","P"  => "p","Q"  => "q","R"  => "r","S"  => "s",
    			"T"  => "t","U"  => "u","V"  => "v","W" => "w","X" => "x","Y" => "y","Z"  => "z"
    		);
    
    	return strtr($up, $lo);
    }

    anal_opressor, 20 Октября 2009

    Комментарии (11)