note 70752 added to function.ucfirst

From: Date: Thu, 26 Oct 2006 14:45:10 +0000
Subject: note 70752 added to function.ucfirst
Groups: php.notes 
Request: Send a blank email to php-notes+get-119137@lists.php.net to get a copy of this message
Some simple function for cyrillic and latin letters both: function rucfirst($str) { if(ord(substr($str,0,1))<192) return ucfirst($str); else return chr(ord(substr($str,0,1))-32).substr($str,1); } ---- Server IP: 195.248.191.91 Probable Submitter: 82.144.196.195 (proxied: 192.168.1.54) ---- Manual Page -- http://www.php.net/manual/en/function.ucfirst.php Edit -- https://master.php.net/note/edit/70752 Del: integrated -- https://master.php.net/note/delete/70752/integrated Del: useless -- https://master.php.net/note/delete/70752/useless Del: bad code -- https://master.php.net/note/delete/70752/bad+code Del: spam -- https://master.php.net/note/delete/70752/spam Del: non-english -- https://master.php.net/note/delete/70752/non-english Del: in docs -- https://master.php.net/note/delete/70752/in+docs Del: other reasons-- https://master.php.net/note/delete/70752 Reject -- https://master.php.net/note/reject/70752 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119137) next »