note 127726 added to function.mb-strtoupper

From: Date: Sun, 16 Oct 2022 17:30:11 +0000
Subject: note 127726 added to function.mb-strtoupper
Groups: php.notes 
Request: Send a blank email to php-notes+get-219677@lists.php.net to get a copy of this message
<?php /** * @copyright Copyright (c) 2008 Yii Software LLC * @license https://www.yiiframework.com/license/ */ function mb_ucfirst($string, $encoding = null) { $firstChar = mb_substr((string) $string, 0, 1, $encoding); $rest = mb_substr((string) $string, 1, null, $encoding); return mb_strtoupper($firstChar, $encoding) . $rest; } ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.161 (proxied: 31.129.215.166) ---- Manual Page -- https://php.net/manual/en/function.mb-strtoupper.php Edit -- https://main.php.net/note/edit/127726 Del: integrated -- https://main.php.net/note/delete/127726/integrated Del: useless -- https://main.php.net/note/delete/127726/useless Del: bad code -- https://main.php.net/note/delete/127726/bad+code Del: spam -- https://main.php.net/note/delete/127726/spam Del: non-english -- https://main.php.net/note/delete/127726/non-english Del: in docs -- https://main.php.net/note/delete/127726/in+docs Del: other reasons-- https://main.php.net/note/delete/127726 Reject -- https://main.php.net/note/reject/127726 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219677) next »