note 62371 added to function.ucfirst

From: Date: Mon, 27 Feb 2006 01:28:39 +0000
Subject: note 62371 added to function.ucfirst
Groups: php.notes 
Request: Send a blank email to php-notes+get-104468@lists.php.net to get a copy of this message
Here is the fixed function for Turkish alphabet.. <?php function uc_first($str){ $str[0] = strtr($str, "abcdefghýijklmnopqrstuvwxyz". "\x9C\x9A\xE0\xE1\xE2\xE3". "\xE4\xE5\xE6\xE7\xE8\xE9". "\xEA\xEB\xEC\xED\xEE\xEF". "\xF0\xF1\xF2\xF3\xF4\xF5". "\xF6\xF8\xF9\xFA\xFB\xFC". "\xFE\xFF", "ABCDEFGHIÝJKLMNOPQRSTUVWXYZ". "\x8C\x8A\xC0\xC1\xC2\xC3\xC4". "\xC5\xC6\xC7\xC8\xC9\xCA\xCB". "\xCC\xCD\xCE\xCF\xD0\xD1\xD2". "\xD3\xD4\xD5\xD6\xD8\xD9\xDA". "\xDB\xDC\xDE\x9F"); return $str; } ?> ---- Server IP: 139.179.10.17 Probable Submitter: 85.97.42.182 ---- X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, UPPERCASE_25_50 autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.ucfirst.php Edit -- http://master.php.net/note/edit/62371 Del: integrated -- http://master.php.net/note/delete/62371/integrated Del: useless -- http://master.php.net/note/delete/62371/useless Del: bad code -- http://master.php.net/note/delete/62371/bad+code Del: spam -- http://master.php.net/note/delete/62371/spam Del: non-english -- http://master.php.net/note/delete/62371/non-english Del: in docs -- http://master.php.net/note/delete/62371/in+docs Del: other reasons-- http://master.php.net/note/delete/62371 Reject -- http://master.php.net/note/reject/62371 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104468) next »