note 63720 added to function.ucwords

From: Date: Wed, 29 Mar 2006 08:12:58 +0000
Subject: note 63720 added to function.ucwords
Groups: php.notes 
Request: Send a blank email to php-notes+get-106925@lists.php.net to get a copy of this message
it can be used for Turkish alphabet. function strtoupperTR($str){ return strtr($str, "abcçdefgğhıijklmnoöpqrsştuüvwxyz", "ABCÇDEFGĞHIİJKLMNOÖPQRSŞTUÜVWXYZ"); } function strtolowerTR($str){ return strtr($str, "ABCÇDEFGĞHIİJKLMNOÖPQRSŞTUÜVWXYZ", "abcçdefgğhıijklmnoöpqrsştuüvwxyz"); } function ucwordsTR($str) { return preg_replace('/([^a-zığüşçö]|^)([a-zığüşçö])/e', '"$1".strtoupperTR("$2")', strtolowerTR($str)); } ---- Server IP: 85.111.4.6 Probable Submitter: 81.213.182.186 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.ucwords.php Edit -- http://master.php.net/note/edit/63720 Del: integrated -- http://master.php.net/note/delete/63720/integrated Del: useless -- http://master.php.net/note/delete/63720/useless Del: bad code -- http://master.php.net/note/delete/63720/bad+code Del: spam -- http://master.php.net/note/delete/63720/spam Del: non-english -- http://master.php.net/note/delete/63720/non-english Del: in docs -- http://master.php.net/note/delete/63720/in+docs Del: other reasons-- http://master.php.net/note/delete/63720 Reject -- http://master.php.net/note/reject/63720 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106925) next »