1.20.x unicode.inc | backdrop_ucfirst($text) |
Capitalizes the first letter of a UTF-8 string.
Parameters
$text: The string to convert.
Return value
The string with the first letter as uppercase.:
Related topics
File
- includes/
unicode.inc, line 574 - Provides Unicode-related conversions and operations.
Code
function backdrop_ucfirst($text) {
// Note: no mbstring equivalent!
return backdrop_strtoupper(backdrop_substr($text, 0, 1)) . backdrop_substr($text, 1);
}