note 102076 added to function.ucfirst

From: Date: Wed, 26 Jan 2011 11:03:29 +0000
Subject: note 102076 added to function.ucfirst
Groups: php.notes 
Request: Send a blank email to php-notes+get-176323@lists.php.net to get a copy of this message
For those who want a multibyte-compliant ucfirst() without wanting to mess with encodings, this should do the trick: function mb_ucasefirst($str){ $str[0] = mb_strtoupper($str[0]); return $str; } ---- Server IP: 195.139.129.18 Probable Submitter: 77.94.232.49 ---- Manual Page -- http://www.php.net/manual/en/function.ucfirst.php Edit -- https://master.php.net/note/edit/102076 Del: integrated -- https://master.php.net/note/delete/102076/integrated Del: useless -- https://master.php.net/note/delete/102076/useless Del: bad code -- https://master.php.net/note/delete/102076/bad+code Del: spam -- https://master.php.net/note/delete/102076/spam Del: non-english -- https://master.php.net/note/delete/102076/non-english Del: in docs -- https://master.php.net/note/delete/102076/in+docs Del: other reasons-- https://master.php.net/note/delete/102076 Reject -- https://master.php.net/note/reject/102076 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176323) next »