drupal_ucfirst
- Versions
- 4.7 – 7
drupal_ucfirst($text)
Capitalize the first letter of a UTF-8 string.
Code
includes/unicode.inc, line 456
<?php
function drupal_ucfirst($text) {
// Note: no mbstring equivalent!
return drupal_strtoupper(drupal_substr($text, 0, 1)) . drupal_substr($text, 1);
}
?>Login or register to post comments 