public static Unicode::ucfirst($text)
Capitalizes the first character of a UTF-8 string.
string $text: The string to convert.
string The string with the first character as uppercase.
public static function ucfirst($text) { return static::strtoupper(static::substr($text, 0, 1)) . static::substr($text, 1); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Unicode.php/function/Unicode::ucfirst/8.1.x