function drupal_ucfirst in Drupal 4
Same name and namespace in other branches
- 5 includes/unicode.inc \drupal_ucfirst()
- 6 includes/unicode.inc \drupal_ucfirst()
- 7 includes/unicode.inc \drupal_ucfirst()
Capitalize the first letter of a UTF-8 string.
1 call to drupal_ucfirst()
- theme_block_admin_display in modules/
block.module - Theme main block administration form submission.
File
- includes/
unicode.inc, line 402
Code
function drupal_ucfirst($text) {
// Note: no mbstring equivalent!
return drupal_strtoupper(drupal_substr($text, 0, 1)) . drupal_substr($text, 1);
}